M.S.B
M.S.B

Reputation: 121

NavigationController Issue on iphone

I am using navigation bar on my application for reach next views in my iphone application. in a stage of view I want reach back my first view.How can i do it please give me suggestion.Thanks.

Upvotes: 0

Views: 78

Answers (3)

user1120133
user1120133

Reputation: 3234

You need to use to go back to your previous view

[self dismissModalViewControllerAnimated:YES];

Hope it helps.

Upvotes: 0

El Guapo
El Guapo

Reputation: 5781

[self.navigationController popToRootViewControllerAnimated:YES];

This call will take you to the root of your view controllers

Upvotes: 1

Ian L
Ian L

Reputation: 5601

There is a popToRootViewControllerAnimated: method that will remove all controllers from the stack and return the user to the first view controller.

See the Apple docs.

Upvotes: 3

Related Questions