-
Set the UIViewControllerBasedStatusBarAppearance to NO in the Info.plist.
-
In ViewDidLoad method or anywhere, where do you want to change status bar style:[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
转载于:https://my.oschina.net/kobeli/blog/173904