Reputation: 1986
I have the beginning of one of my UITabBarController
tabs set up looking like this, where the first UINavigationController
is coming right of of my main UITabBarController
as the second tab(index 1).
There was a UINavigationController
in between the 2nd and 3rd Controller; I removed it because I believe I need to create a stack of UIViewController
's rather than nesting navigation controllers. All views should stem from one navigation controller, however, now that I have removed the NavController, I no longer have a navigation bar on the 3rd ViewController(running on my iPhone), what's the problem?
By the way I have tried using [self.navigationController.navigationBar setHidden:NO];
on the 3rd ViewController that didn't work, and the 'top bar' is set to "Opaque Navigation Bar" in the storyboard.
EDIT:
At this point I have actually successfully set up my entire navigation hierarchy without nested UINavigationController
s, but could not navigate, as it takes away my UINavigationBar
s immediately upon being displayed, however, simply re-embeddings the views in navcontrollers re-established already existing UINavigationItem
's.
Upvotes: 1
Views: 137
Reputation: 89
Make sure that there is a Navigation Item
in the 2nd controller, if not drag one there from the component navigator. Then set the Navigation Item
's properties to test it (i.e., use a title, or add a button, etc.).
Upvotes: 1