Sreelash
Sreelash

Reputation: 1

Navigation control for iphone

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

Answers (2)

Nick C
Nick C

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

Suresh Varma
Suresh Varma

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.....

Click this link for more

Upvotes: 1

Related Questions