开发者

Navigation control for iphone

开发者 https://www.devze.com 2023-01-15 00:40 出处:网络
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 i

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

精彩评论

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