Reputation: 1
I wanna implement a naviagtion control for a series of view. For example, naviagting from 1st view to 2nd view, then from 2nd view to 3rd view.......Can anybody give good tutorial for implementing this.
Regards, Sreelash
Upvotes: 0
Views: 316
Reputation: 645
instead of doing
self.window.rootViewController=viewController;
do something like:
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
self.window.rootViewController=navigationController;
then when you want to go to the next view controller use:
pushViewController:animated:
and when you want to back use:
popViewControllerAnimated:
or
popToViewController:animated:
Upvotes: 0
Reputation: 9740
Take the navigation based Application
while selecting the project.
USe pushViewController
to navigate from 1 to 2, 2 to 3...
use popViewController
to come to previous like 3 to 2, 2 to 1.....
Upvotes: 1