iphone - How can I break the "navigation stack" in a Cocoa Touch App? -
I am currently trying to create a navigation based application, pushing ideas to change the screen content . I'm trying to set a button that can allow me to "restart" from the first screen, but I can not figure out one way to do this.
If I had the first scene "push", there would be a "back" button, and I would just have another piece on the scene stack. In fact, I want to start that stack again.
Is this possible? (Am I clear? English is not my first language :))
1 to navigate in view For the navigation stack (i.e. for the root controller) you can do just one call with:
[self.navigationController popToRootViewControllerAnimated: Yes];
If you also want to change the root controller, then I think you can do that setViewControllers: animated:
method
Comments
Post a Comment