美文网首页
iOS 13 不适配黑夜模式方法

iOS 13 不适配黑夜模式方法

作者: UILabelkell | 来源:发表于2019-11-01 14:57 被阅读0次

    在plist文件里添加

    <key>UIUserInterfaceStyle</key>
    <string>UIUserInterfaceStyleLight</string>
    
    
    iOS12以后UIUserInterfaceStyle添加了dark模式,上传appstore提交审核,报错App Store Connect Operation Error ERROR ITMS-90785;
    
    具体报错信息:
    
    App Store Connect Operation Error ERROR ITMS-90785: "UIUserInterfaceStyle can’t be 'UIUserInterfaceStyleLight'. It can only be 'Light', 'Dark', or 'Automatic'. Learn more (https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW44)."
    
    从字面上意思是UIUserInterfaceStyle不能为UIUserInterfaceStyleLight模式,应该为Light或者Dark,或者Automatic模式;
    
    解决办法:
    <key>UIUserInterfaceStyle</key>
        <string>Light</string>
    
    

    相关文章

      网友评论

          本文标题:iOS 13 不适配黑夜模式方法

          本文链接:https://www.haomeiwen.com/subject/zngfbctx.html