ksa_coder
ksa_coder

Reputation: 1413

Swift - Unable to show Navigation Bar

I know the questions has been asked multiple times, and I went through the regular steps detailed in some of the posts but it didn't work. Clearly am missing a small detail that is leading to this unexpected behavior.

I have a tab bar controller from which there is a VC that inherits from UITableViewController (annotated as VC1). When I click on a row in the table, it takes me to another view (annotated as VC2) which shows the details. I want to have the navigation bar shown in the details view but it is not. I tried the following options:

Can someone please outline something I could be missing?

Image of the flow has been added with annotations.

enter image description here

Upvotes: 0

Views: 705

Answers (2)

schoeberlt
schoeberlt

Reputation: 167

Try to use a detailViewController, check out the Master-Detail template in Xcode. Maybe it is an Xcode bug, try to restart Xcode or recreate the ViewControllers

Upvotes: 0

Unis Barakat
Unis Barakat

Reputation: 886

Make sure for top bar here it says Inferred and not none.

Top right corner where it says status bar should be inferred

Upvotes: 0

Related Questions