iosxcodexibxcode9.3

Xcode 9.3. How to hide view statusbar in xib?


In Xcode < 9.3 we can hide status bar in view in xib by setting top bar simulated metrics to None.

But now in 9.3, when setting this to None, the status bar didn't hide.

Any ideas how to hide it?

enter image description here


Solution

  • You need to set simulated metrics size to "Freeform". Next, you need to change the size of your view to some custom value. After that Xcode will hide the status bar.