Is there a method to go back one view in the stack on a UINavigationController? Or to a view with a specific title?
Is there a method to go back one view in the stack on a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t mean to be rude, but this is really well documented. A google search or even an Apple documentation search on UINavigationController will turn up exactly what you need. To programmatically pop the current view controller you use:
To pop to a specific view controller, you use:
You will have to iterate through the list of view controllers first and check the title against what you’re looking for and pass that to this method.