user10166622
user10166622

Reputation:

Why is the navigation bar not appearing in the Simulator?

In my application that I am building, I set up a navigation controller to control navigation through the app. I created a Root View Controller.

enter image description here I linked that Root View Controller to another View Controller using a show segue. Now the View Controller displays the navigation bar with the Large Titles turned off in the storyboard.

enter image description here

Even though it is showing up in the storyboard when I click the plus button, the navigation bar is not showing up in the Simulator. Does anybody know why?

enter image description here enter image description here

Here is the complete Storyboard (Navigation Controller on the left - Root View Controller in the middle - Add View Controller on the right).

enter image description here

If someone could help me with this that would be amazing. Thank you.

Upvotes: 0

Views: 957

Answers (2)

realtimez
realtimez

Reputation: 2555

You can retrace the steps and see where it went wrong:

1: Create a new single page app. Remove the VC and add TableVC. Set as root VC.

2: Select TableVC, Editor -> Embed in navigation controller.

3: Add tab bar item to the added navigation bar of the TableVC.

4: Create another VC and control drag from tab bar item to the VC (a push segue).

Upvotes: 1

Dwyane
Dwyane

Reputation: 19

picture

Hi!Have you linked the Storyboard with ViewController like picture?That could be one reason.

Upvotes: 0

Related Questions