UINavigationController - Skip over a view when creating a new item?

Discussion in 'iOS Programming' started by jaycyn94, Mar 13, 2009.

  1. jaycyn94 macrumors newbie


    Jul 18, 2007
    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?
  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    Try viewDidAppear instead. viewWillAppear is triggered before the new view has appeared, Hence the "will" part.

Share This Page