-1

在您的应用程序代表中。只需转到函数:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
 if #available(iOS 13.0, *) {
        window?.overrideUserInterfaceStyle = .light
    }
     return true
}

有什么建议么....

4

3 回答 3

2

您可以在info.plist

钥匙:UIUserInterfaceStyle

细绳:Light

于 2019-11-27T07:17:09.587 回答
2

打开 info.plist 作为源代码并添加:

<key>UIUserInterfaceStyle</key>
<string>Light</string>
于 2019-11-27T07:18:49.603 回答
0

AppDelegate使用以下代码进行编辑。

func application(_application:UIApplication,didFinishLaunchingWithOptions launchOptions[UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
 if #available(iOS 13.0, *) {
        window?.overrideUserInterfaceStyle = .light
    }
     return true
}
于 2019-11-27T06:55:31.820 回答