1.statusBar颜色
暗黑模式下
if (@available(iOS 13.0, *)) {
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDarkContent;
} else {
// Fallback on earlier versions
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
}
2.颜色
if (@available(iOS 13.0, *)) {
self.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
}
3.模态视图
vc.modalPresentationStyle = UIModalPresentationFullScreen;
待续。。
参考链接:https://www.jianshu.com/p/d12caf60850e
4万+

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



