Quote:
Originally Posted by jaycyn94
I have an UINavigationController application where the navigation works like:
Main list -> view individual items -> edit parts of item
What I would like to do is be able to when I create a new item go directly to the edit page, then be able to navigate back out normally. I tried to set up my individual item controller to check in viewWillAppear that if this is a new item, pop over to the edit page. However when I do that, it seems to confuse the navigation controller, as it thinks it is on a different level of navigation.
It there a good way to jump a level or otherwise push two views across?
|
If you are at your main list, and want to go directly to the edit parts view, but when the user clicks the back button you go back to view individual items, you should do this:
Call pushViewController:animated: on the view individual items controller, with animated = FALSE, and then immediately push the edit parts view controller with animated set to TRUE. This will add your view items view controller to the stack so the back button takes you there.