Reputation: 13853
I have read similar threads about this issue in StackOverflow but none of them solved my problem. Usually, I have no issue setting up the Navigation Controller. As you can see in the picture below, I have set my View Controller embedded in the Navigation Controller:
But when I run the project, I can't see my Navigation Bar, like in the picture below:
I am presenting my VC using show segue:
I don't know if this gives effect or not but the first picture above is actually my Authentication Storyboard. I try to separate the authentication process in the "Authentication Storyboard". The main storyboard will be like this:
I have also set the navigation bar visibility to enable. What went wrong in here?
Upvotes: 3
Views: 1349
Reputation: 623
The issue here seems to be the setup of your storyboard connections between your Tab Bar, Navigation and View Controllers.
This can be done in many different ways, but a fast way to do it is selecting your Main AuthVC
and clicking on the menu: Editor -> Embed in -> Tab Bar Controller
). Then, repeat the process but embedding it to a Navigation Controller (Editor -> Embed in -> Navigation Controller
. And lastly, set the Tab Bar Controller as the Initial View Controller.
It should look something like this:
This would solve the problem with the Navigation Bar:
Upvotes: 2
Reputation: 1481
After Tab bar Controller add Navigation view controller.Then add your view controller.
Upvotes: 0