In the code you have set the array in the "second
" object of a SecondViewController
.
So you need to use that object for displaying the SecondeViewController
, other wise how can it won't show the array.
Check the following code.
// In the FirstViewController
- (void)buttonClicked:(id)sender{
SecondViewController *second = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle: nil];
[second setValue:existingArray];
[self.navigationController pushViewController:second animated:YES];
[second release];
}
Here in the code I am assigning the data to the array in the "second" object and I am using that object to display the controller.
Regards,
Satya
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…