lmcd / LMAlertView

Open Source, customisable clone of UIAlertView for iOS 7
MIT License
794 stars 125 forks source link

LMEmbeddedViewController seems to always reset the preferredStatusBarStyle #46

Open fitch opened 10 years ago

fitch commented 10 years ago

It seems that presenting the LMAlertView from a view with a view controller that sets preferredStatusBarStyle to UIStatusBarStyleLightContent will result in a status bar style reset back to UIStatusBarStyleDefault when the alert view is visible.

My workaround is now to implement preferredStatusBarStyle with a fixed return value to LMEmbeddedViewController.m:

- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}