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

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

  1. jaycyn94 macrumors newbie

    Joined:
    Jul 18, 2007
    #1
    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

    dejo

    Staff Member

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

Share This Page