经过两步设置
一:在UIViewController里的viewWillApper或viewDidAppear里面加入[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]
二:去info.plist文件里面设置View controller–based status bar appearance 为NO
经过以上两步就可以设置成功了,效果图如下:
经过两步设置
一:在UIViewController里的viewWillApper或viewDidAppear里面加入[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]
二:去info.plist文件里面设置View controller–based status bar appearance 为NO
经过以上两步就可以设置成功了,效果图如下: