Shown in the image below is a setup that I'm trying to create with the following hierarchy:
- Root Single View Controller (from left, second view in screenshot) embedded into a Navigation Controller (from left, first view in screenshot).
- Tab Bar Controller (from left, third view in screenshot that is accessed from the root vc
- 2 View Controllers (the 2 most right views in screenshot) that are embedded in the tab bar controller and seemingly also still in the navigation bar controller.
Each Tab Bar Controller shows a navigation bar (as you can see in the right 2 views). The logic that does work is that when I press the button on the root, the tab bar controller opens. You can navigate between tabs via the tab bar and you get back to the root by pressing the back button in the navigation bar.
What I don't understand is how I can access the navigation bar on each of the right most views. As mentioned above, the navigation bar shows the back button, but I can't access the title, or add any navigation bar buttons. When I do, nothing is displayed (except for the back button). So What I want is to be able to set the title of the navigation bar in each view controller that is connected to the tab bar controller. And as shown in the screenshot below, there clearly is a navigation bar which comes from embedded root view controller.
Some more info that may make things clearer:
- I have relationships from the tab bar controller to each view controller that the tab bar manages.
- I tried embedding the right most view controllers into navigation controllers, but that still didn't work.
- I tried to add a navigation bar item to the view controllers manually and couldn't get access to the title either.
Any Ideas What I'm Doing Wrong ?? Thanks!