So, I'm trying to pull the view controller out of the stack when an error occurs, but it seems to pop too much at a time. The navigation bar at the top loses its name and buttons, but the old table view data remains visible. I have no idea what's going on ...
Basic setting:
- Tab Pattern
- Navigation controller
- View controller (downloaded from xib)
- View controller (clicked that I want to pop)
Here is the code:
NSLog(@"%@", [[self navigationController] viewControllers]);
[[self navigationController] popViewControllerAnimated:NO];
NSLog(@"%@", [[self navigationController] viewControllers]);
As a result, NSSC will show:
2009-09-22 19:57:14.115 App[34707:550b] (
<MyViewController: 0xd38a70>,
<MyViewController: 0xd36b50>
)
2009-09-22 19:57:14.115 App[34707:550b] (null)
Does anyone have any experience?
Paxton
source
share