1.在info.plist中添加View controller-based status bar appearance,值为NO
2.在设置状态栏的地方添加代码
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
3.大功告成
1.在info.plist中添加View controller-based status bar appearance,值为NO
2.在设置状态栏的地方添加代码
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
3.大功告成