4

I know this question has been asked before. I have already tried this Navigation Bar not showing in Storyboard. I have a navigation bar and a toolbar. They were showing in the storyboard fine before I restarted my system. They work completely fine during runtime but I am no longer able to access it using Storyboard. I have also tried changing top bar for Simulated metrics. Here is the screenshot for the same.

Storyboard Screenshot

Runtime Screenshot

Community
  • 1
  • 1
Adam Young
  • 1,321
  • 4
  • 20
  • 36
  • 1
    Do you have a segue connected to it from a controller which is linked to a UINavigationController or a link to it making it the root of a UINavigationController? Sometimes you need this for it to show up in storyboard. – Rory McKinnel Apr 10 '15 at 12:44
  • Just noticed you added your own navigation bar. Is this so you can use it in modal presentations? If you intend pushing this controller, then you should use the navigation bar which comes with a UINavigationController and only set the controllers navigation item. Aside from that my other assumption would be you might have your constraints wrong. Top of the nav bar should be constrained to the top layout guide and the top of table to the bottom of the navigation bar. Looks like the table thinks it can go over the top of your nav bar. – Rory McKinnel Apr 10 '15 at 13:41

2 Answers2

4

Make sure it is ticked here for Navigation Controller in Storyboard:

enter image description here

duan
  • 8,515
  • 3
  • 48
  • 70
3

Try This seems like your frame is misplaced from the top and not according to the constraint too enter image description here

Asadullah Ali
  • 1,056
  • 14
  • 31