user564963 user564963 - 1 year ago 129
iOS Question

popping to root view in navigation controller

I have one navigation controller with three views. I push the three view controllers onto the navigation controller's stack and want to pop all the pushed view controllers at once by the click on a button. I would like to be able to do that from any pushed view controller...

Please can you help me and give me pointers on how I could do that?

Answer Source
[self.navigationController popToRootViewControllerAnimated:YES];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download