Consider the following setup:
UINavigationController
subclass and a single UIViewController
subclass in it.preferredStatusBarStyle()
method and returns UIStatusBarStyle.LightContent
prefersStatusBarHidden()
method and returns true
In iOS 8.0 - 8.2 when another UINavigationController
(with another UIViewController that does not override anything) is presented with the modalPresentationStyle
set to UIModalPresentationStyle.OverCurrentContext
, the newly presented controller inherits the status bar appearance and visibility.
But in iOS 8.3 in the exact same situation - the newly presented controller does not inherits the status bar appearance and visibility
Another example would be to present an instance of UIImagePickerController
- the exact same thing happens regarding the status bar appearance.
The questions are:
Try that:
(viewControllerToBePresented).modalPresentationCapturesStatusBarAppearance = true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With