
push and pop UINavigationController example

Pushing and Popping Stack Items
*? pushViewController:animated:
? popViewControllerAnimated:
? popToRootViewControllerAnimated:
? popToViewController:animated:
*
- (IBAction)b2ButtonPressed
{
HomeViewController* mVC = [[HomeViewController alloc] init];
UINavigationController *mNav = [[UINavigationController alloc] initWithRootViewController: mVC];
[self presentModalViewController: mNav animated:YES];
[mVC release];
[mNav release];
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.