Cannot hide Statusbar on ipad, iOS 10 beta

Hello


Xcode beta 6, iOS beta 6. SpriteKit project.


I have checked all the possible settings, but status bar cannot be hidden when the app is launced on iPad.


Status bar is initially hidden set to YES
View controller-based status bar appearance set to NO


in info.plist


but in my ViewController



print("prefersStatusBarHidden", prefersStatusBarHidden)


prints FALSE and shows status bar.


When I run the same on iPhone (device or any simulator) I get TRUE and no status bar.


And there is no way to change it programmatically sicnce prefersStatusBarHidden is read only and there is not function to override like in previous versions of iOS.


Where the **** this setting may be?


The problem did not occur until ios 10.


Thank you!

Of course there is "hide status bar" setting checked in General Settings of the project. And "Status bar" set to "none" in the only ViewController in Interface Builder.


Is there anything else I can check?

I found the solution:


override var prefersStatusBarHidden: Bool {
        get {
            return true
        } 
    }
Cannot hide Statusbar on ipad, iOS 10 beta
 
 
Q