-
Set
the UIViewControllerBasedStatusBarAppearance
toNO
in theInfo.plist
. -
In
ViewDidLoad
method or anywhere, where do you want to change status bar style:[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
转载于:https://www.cnblogs.com/joesen/p/3358832.html