UITabBarController: UINavigationController goes to the top of the stack... WHY?? HELP

Discussion in 'iPhone/iPad Programming' started by ethana, Jan 18, 2009.

  1. macrumors 6502a

    Joined:
    Jul 17, 2008
    Location:
    Seattle, WA
    #1
    I set this all up in Interface Builder.... I have a Tab Bar on my application with two tabs in it. Tab #1 has a UINavigationController in it. There are two views in the UINavigationController, call them First and Second. Tab #2 just has a normal view and we'll call it Other.

    When the app starts I'm on Tab #1 and First view is the top of the navigation stack. When I touch a button on First, I'm taking to Second.

    Then I'll touch Tab #2 to take me to my Other view.

    When I touch back to Tab #1, I'm still on the Second view in the navigation. That's great. That's exactly what I want. But when I touch Tab #1 AGAIN it takes me BACK to the the First view.

    WHY? How do I fix this? I don't want it to take me anywhere.

    Same problem as this guy has: http://discussions.apple.com/thread.jspa?messageID=8833135

    Thanks,

    Ethan
     
  2. macrumors 6502

    Joined:
    Jun 26, 2008
    #2
    That's the default behavior of a tab view. You can see this in the contacts app. Just go to any tab, navigate down the hierarchy and then hit the same tab again. You'll be brought back to the top view.
     

Share This Page