Reputation: 393
My UINavigationController is not more working after many push and pop. I have tested the transition´s operations and the content of the stack of my UINavigationController. The ViewControllers are nice pushed and popped. But after many times i tried to push a ViewController.
This one is added to the stack but it is view is not showing, and my app is blocked. I have tried to debug but i can not become an Exception.
I think the problem is that the view of the new pushed ViewController is not be showing.
Anyone has an idea what kind of mistake it can be achieved?
ImpressumController* impressumVC = [self.storyboard instantiateViewControllerWithIdentifier:@"ImpressumController"];
[self.navigationController pushViewController:impressumVC animated:YES];
NSLog(@"navigation viewcontrollers %@",self.navigationController.viewControllers);
Popping code.
[self.navigationController popViewControllerAnimated:YES];
Upvotes: 2
Views: 310
Reputation: 5380
Check if your view controller is being deallocated and your memory usage is not growing. Just override - (void)dealloc
function and put there a break point to check if it is being reached.
Upvotes: 1