Xcode 9.3. How to hide view statusbar in xib? Xcode 9.3. How to hide view statusbar in xib? ios ios

Xcode 9.3. How to hide view statusbar in xib?


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.


On your info.plist add the following two property for statusBar Hidden

View controller-based status bar appearance (Boolean: NO)

Status bar is initially hidden (Boolean: YES)

By Source

<key>UIStatusBarHidden</key><true/><key>UIViewControllerBasedStatusBarAppearance</key><false/>

or

enter image description here