[英]How can I make the font size of the status bar of my old app to match the system status bar in iOS 10?
UIApplication.shared.statusBarStyle = .lightContent
在每个视图控制器内部,使用此代码在状态栏中提供自动颜色支持
覆盖var preferredStatusBarStyle:UIStatusBarStyle {return .lightContent}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.