0

I have my ViewControllers embedded in a Navigation Controller, however when I run the app the navigation bar doesn't appear, instead appears as follows:

enter image description here

This is however how my VC in the storyboard looks:

enter image description here

Does anybody have an idea on why might this be happening?

Kind regards - thanks in advance!

10
  • Show a screen shot of the relevant part of the storyboard, please. Commented Feb 1, 2017 at 19:31
  • @matt Tell me exactly what you wanna see. Commented Feb 1, 2017 at 19:32
  • Oh, also: there is no visible status bar any more, so you have to ask yourself, what is that blurry rectangle behind the status bar? That must be something you are creating. You need to look for where that is being done. Commented Feb 1, 2017 at 19:33
  • :) Ideally you could just post the project where I can download it and I'll figure it out for you. Describing or even screen-shotting a storyboard is a big hassle, I know. Commented Feb 1, 2017 at 19:34
  • 1
    But once you've hidden it, you've hidden it. Do you see? You hide it initially, and then you never show it. So it never shows. It isn't going to come back all by itself! Commented Feb 1, 2017 at 19:47

2 Answers 2

1

Please check if your navigation bar is not hidden, you can do it by isNavigationBarHidden on UINavigationController instance. You can set this value either in storyboard or in code by calling setNavigationBarHidden(_ hidden: Bool, animated: Bool).

Sign up to request clarification or add additional context in comments.

Comments

0

Try and Drag Navigation Item to the navigation bar from the storyboard. It worked for me. If not, try setting constraints for the navigation bar. I know it sounds random, but that's how I solved this issue most of the times.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.