plist里面增加ViewControllerBasedStatusBarAppearance =NO
然后在AppDelegate 加入
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if ([[[UIDevice currentDevice] systemVersion] floatValue] >=7) {
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}
本文详细介绍了如何在 iOS 应用中通过修改 plist 文件来调整 ViewControllerBasedStatusBarAppearance 属性,进而自定义状态栏样式,包括设置为深色或浅色模式,并在 AppDelegate 中实现相应的代码逻辑。
1万+

被折叠的 条评论
为什么被折叠?



