1.首先在plist文件中添加如下代码禁用暗黑模式
<key>UIUserInterfaceStyle</key>
<string>Light</string>
2.添加如下代码解决状态栏消失的问题
if (@available(iOS 13.0, *)) {
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDarkContent animated:YES];
}
1.首先在plist文件中添加如下代码禁用暗黑模式
<key>UIUserInterfaceStyle</key>
<string>Light</string>
2.添加如下代码解决状态栏消失的问题
if (@available(iOS 13.0, *)) {
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDarkContent animated:YES];
}