1在info.plist文件中添加View controller-based status bar appearance为NO;
2工程target下的general设置:
3viewController中的语法如下, 会覆盖在2中覆盖的样式.
UIApplication.shared.statusBarStyle = .default
1在info.plist文件中添加View controller-based status bar appearance为NO;
2工程target下的general设置:
3viewController中的语法如下, 会覆盖在2中覆盖的样式.
UIApplication.shared.statusBarStyle = .default