Reputation: 121
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
Reputation: 3234
You need to use to go back to your previous view
[self dismissModalViewControllerAnimated:YES];
Hope it helps.
Upvotes: 0
Reputation: 5781
[self.navigationController popToRootViewControllerAnimated:YES];
This call will take you to the root of your view controllers
Upvotes: 1
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