开发者

Navigation control for iphone

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:
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜