V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
GaryLee
V2EX  ›  iOS

想问下,现在 ios 的 app 上架审核有要求必须适配黑暗模式吗?

  •  
  •   GaryLee · 2020-10-12 09:51:25 +08:00 · 2773 次点击
    这是一个创建于 1264 天前的主题,其中的信息可能已经有所发展或是发生改变。
    7 条回复    2020-10-12 17:19:02 +08:00
    MonkeyBro
        1
    MonkeyBro  
       2020-10-12 09:58:07 +08:00
    if (@available(iOS 13.0, *)) {
    self.window.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    }
    一行代码就算适配了。
    ydq419453527
        2
    ydq419453527  
       2020-10-12 10:01:19 +08:00
    没有这个要求
    dorentus
        3
    dorentus  
       2020-10-12 10:06:10 +08:00
    @MonkeyBro

    如果只是需要全局强制的话,不用动代码,在 Info.plist 里面加上 UIUserInterfaceStyle: Light 就行了
    strongcoder
        4
    strongcoder  
       2020-10-12 10:39:34 +08:00
    你不适配暗黑模式 就把设置成仅亮色就好了 不设置的 默认切换过去 整个 APP 很难看的
    Leonard
        5
    Leonard  
       2020-10-12 10:42:57 +08:00
    没有这个要求,只是要求最低使用 Xcode11 打包。暗黑模式你可以手动设置不支持,不然会默认支持。
    MonkeyBro
        6
    MonkeyBro  
       2020-10-12 10:50:22 +08:00
    @dorentus 对,全局的 plist 里加也一样,习惯代码了
    GaryLee
        7
    GaryLee  
    OP
       2020-10-12 17:19:02 +08:00
    学到了,感谢各位大佬!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3598 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:39 · PVG 12:39 · LAX 21:39 · JFK 00:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.