I have a navigation controller:

when clicking in the cell button, it opens a new view with its own xib file:
ParkingData *aController = [[ParkingData alloc]initWithNibName:@"ParkingData" bundle:nil];
[[self navigationController] pushViewController:aController animated:YES];
It is perfectly linked in code, but, it is not into the viewControllers Array:
NSArray *viewArrays = [self.navigationController viewControllers];
NSLog(@"Views %@",viewArrays);
Views (
"<Favorite: 0x7c5f250>"
)
How about ParkingData? How can I add it?
Thanks!
Your ParkingData *aController is your present view controller(i.e. view which you are seeing at the moment)…. only the previous viewcontrollers, from which you pushed the view, are added to the self.navigationController.viewControllers array… Suppose if you push to another view controller form aController then your aController will be added to the self.navigationController.viewControllers array