I have a storyboard with the following layout.
- TabBarController
- --> NavigationController
- ----> TableViewController
- ----> TableViewController
- ----> TabBarController (hides bottom bar on push)
- ------> TableViewContrller (set title)
I push 4 & 5 onto navigation controller 2. 5 hides bottom bar when pushed and when 6 is visible because it's tab bar item is selected the title set on the view controller 6 is not visible in the navigation bar
My question is, what is the best way to set this from interface builder (XCode5)?
I also attempted to add a navigation item to view controller 6 and set the title there but this had no effect.
Whilst writing this, I realised that view controller 6 is never pushed onto the navigation controller stack, which is why it has no navigation item. I was about to abandon the question when realising that setting the navigation item on view controller 3 produces the effect I expected. Which is to toggle navigation bar titles when changing to different tabs.
This of course is because they are completely different navigation controllers. Is there anyway to simulate this behaviour with the structure I have? If not can you suggest an alternative approach?