1.plist 添加 UIViewControllerBasedStatusBarAppearance 字段 设置NO;
2.在AppDelegate里面写上代码
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
3.搞定
1.plist 添加 UIViewControllerBasedStatusBarAppearance 字段 设置NO;
2.在AppDelegate里面写上代码
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
3.搞定
本文标题:iOS 设置状态栏为白色
本文链接:https://www.haomeiwen.com/subject/xzasjttx.html
网友评论