I have an hierarchy of 3 view controllers in my navigation bar controller: view1->view2->view3. After the user finished with view3 I want to take him to view1. What is the best approach to do that?
Assuming that view3 and view2 have already been pushed onto your navigation controller, you can use -[UINavigationController popToRootViewControllerAnimated:] or -[UINavigationController popToViewController:animated:] to accomplish this.
-1
votes
Simply make the action of a UIBarButtonItem on your UINavigationController (in this case, most likely your rightBarButtonItem) call
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more