直接在AppDelegate 里的
funcapplication(_application:UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey:Any]?) ->Bool
方法里添加
if #available(iOS 13.0, *) {
self.window?.overrideUserInterfaceStyle = .light
}else{
// Fallback on earlier versions
}
简单粗暴!
网友评论