0

I'm experiencing weird behaviour of the status bar visibility. I just changed the code to use ViewController-based status bar appearance, setting View controller-based status bar appearance to YES in the project Info section. After doing that, the status bar completely disappears after the launch phase on iOS 9 (On iOS 10, everything works as expected). Overriding prefersStatusBarHidden does not help:

override var prefersStatusBarHidden: Bool {
        get {
            return false
        }
    }

the status bar is still invisible. I use a UITabBarController containing a UINavigationController and the prefersStatusBarHidden of the top ViewController inside the UINavigationController is called and returns false. Still the status bar is only visible for the launch and then disappears when the root view is shown.
Has anyone experienced this or similar behaviour? I looked for other calls that might affect this, but I can't find anything.

Micky
  • 5,578
  • 7
  • 31
  • 55

0 Answers0