I wanna implement a naviagtion control f开发者_开发百科or 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
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.....
Click this link for more
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:
精彩评论