ice.hu
ice.hu

Reputation: 75

iOS11 - Can't hide status bar

After upgrading to iOS 11 / Xcode9, the status bar is not longer being hidden.

I have "View Controller-Based Status Bar Appearance" set to "YES" in info.plist, and also:

override var prefersStatusBarHidden: Bool {
    return true
}

According to the debugger, prefersStatusBarHidden is called, but is not having any effect.

Is this a bug? Does anyone know of a solution?

Upvotes: 3

Views: 2605

Answers (1)

Jeff
Jeff

Reputation: 359

I ran into the same thing using STPopUpPreview. I had to set modalPresentationCapturesStatusBarAppearance = true on my preview view controller. Good luck!

Upvotes: 3

Related Questions