Deformed Navigation bar - ios

I'm not sure what happened, but while editing the title of my Navigation bar, the Navigation bar suddenly became deformed like this:
On the device, the navigation bar seems to be twice the regular height:
The navigation bar is generated by connecting a navigation controller via the storyboard. It was working fine for weeks until now. I tried the following in an attempt to remedy the problem:
Clean + Build
Restart Xcode
Restart my macbook
Turning off and on my size classes
Deleting the Navigation controller and dragging a new one back on screen.
Anyone know how to solve this problem?

Sounds more like the view controller embedded in the navigation controller is whats corrupt.
Did you try re-creating the view controller as well?

Related

No tab bar in one child view since Xcode 9.2 update

Since I updated to Xcode 9.2, the tab bar isn't displayed anymore in one of my child views and I'm struggling to get it back.
I did everything using the storyboard.
Here is a screenshot of it:
As you can see, the same segue is used in both views but the result is not the same...
I ended up using a small workaround. Maybe it is the right way to do it and my first implementation was wrong.
So instead of embedding the tab bar controller in a nav bar controller I ended up putting each tab in a nav bar controller.
Like this:
screenshot
And now everything is working correctly.

How to simulate navigation bar in Xcode 9

In xcode 8 we could simulate translucent navigation bar of a view controller. Is there a way to do the same thing in xcode 9?
I did the same thing as in xcode 8:screenshot, yet nothing happens.
How could we manipulate navigation bar items if there is no navigation bar simulation?
Thanks.
Not sure if this is a bug that is going away in later releases but temporarily I just made controller root view controller of navigation controller. The navigation controller never gets instantiated or segued to from anywhere but it's enough to get storyboard to look correct.

Error in displaying tab bar controller in storyboard

I'm developing a project in Swift and when using the storyboard to modify the views, I find an uncomfortable situation. The image is self-explanatory: Image of the stroyboard.
As you can see, the bar has grown and it's impossible to see the view i'm working in. At first, the error ocurred in the navigation controller beneath the tab bar controller but now it spreads to the new views I create and connect.
Any help would be apreciated.

Mysterious navigation controller bar gone

It has happened more than once, but today, something even more mysterious happened to me. After restarting my macbook and reopening Xcode, 3 of my views lost their navigation bars on the interface builder.
Like so:
[img]http://i.imgur.com/pM5prrg.png[/img]
However, running it on the simulator still shows the navigation toolbar on the top of the screen.
[img]http://i.imgur.com/joG4fjn.png[/img]
Any idea on what's happening here? I restarted my computer once again, to see if that changes anything, but to no avail.
This problem also happens sometimes, when I place a brand new view controller and embed a navigation controller into it. The toolbar simply doesn't show on the view in the interface builder.
The navigation bar in your app is generated by the navigation controller at run-time.
Interface builder has to "simulate" the run time look and content of a navigation bar, and it has to work out which controllers to apply it to.
You can also manually request a simulated navigation bar (and tab bar etc) in the settings for each view controller.

iOS 7 navigation bar visual glitch when transitioning between view controllers

I've got a very simple setup using segues to display a simple master/details configuration. When pushing or popping from the navigation controller, the right hand side of the navigation bar has a strange grey shadow. See this video for a demo.
If I remove all subviews from the detail controller and simply set the background as red (see video), I still get the grey artefact, and strangely, the red only appears behind the navigation bar once the entire transition has finished.
Any idea why this is happening?
Well, very strange, but simply deleting and re-creating an identical view controller in the storyboard fixed this issue.

Resources