Navigation (controller) in Tabbar (c) in Navigation (c) (iphone)

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-05-17T16:31:20Z Indexed on 2010/05/17 16:40 UTC
Read the original article Hit count: 649

I want to have a TabBar controller inside a navigation controller. So that when an item is selected on the first Navigation Controller it pushes the TabBar into view. Inside this tabbar on the first tab is another navigation controller.

However I only want one navigation bar.

I've come up with 2 ways but not sure which way is better (Ie more acceptable etc)?

1) The first navigation controller isn't actually a navigation controller but to the user it looks like one. So when a cell is selected on it's table view the first navC's view is removed from the superview and the TabBarC's view is added, animation would have to be done manually.

2)The first NavC is actually a NavC and when an item is selected and the TabBar is pushed on to the screen the first NavC's navigationbar is hidden so that the first tab's navigationBar is the only nav bar on screen.

© Stack Overflow or respective owner

Related posts about navigationcontroller

Related posts about tabbar