Possible Duplicate:
how to pop when first pushed vc then presented modal vc 12 times?
I am model (presenting) 12 viewControllers and now I want to dismiss to a specfic VC, how can I do that. please help me out.
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.
If you want to do it in one step, then you have to call dismissViewControllerAnimated:completion: from the controller you want to go back to. That will dismiss all the controllers that were presented after it in the chain. If you need to do this from a button click (or other user interaction) in that last controller that was presented, then you might have to send an NSNotification that the controller you want to go back to, listens for, and acts on to dismiss all the controllers.