GaryLee
V2EX  ›  iOS

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

  •  
  •   GaryLee · Oct 12, 2020 · 3621 views
    This topic created in 2063 days ago, the information mentioned may be changed or developed.
    7 replies    2020-10-12 17:19:02 +08:00
    MonkeyBro
        1
    MonkeyBro  
       Oct 12, 2020
    if (@available(iOS 13.0, *)) {
    self.window.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    }
    一行代码就算适配了。
    ydq419453527
        2
    ydq419453527  
       Oct 12, 2020
    没有这个要求
    dorentus
        3
    dorentus  
       Oct 12, 2020
    @MonkeyBro

    如果只是需要全局强制的话,不用动代码,在 Info.plist 里面加上 UIUserInterfaceStyle: Light 就行了
    strongcoder
        4
    strongcoder  
       Oct 12, 2020
    你不适配暗黑模式 就把设置成仅亮色就好了 不设置的 默认切换过去 整个 APP 很难看的
    Leonard
        5
    Leonard  
       Oct 12, 2020
    没有这个要求,只是要求最低使用 Xcode11 打包。暗黑模式你可以手动设置不支持,不然会默认支持。
    MonkeyBro
        6
    MonkeyBro  
       Oct 12, 2020
    @dorentus 对,全局的 plist 里加也一样,习惯代码了
    GaryLee
        7
    GaryLee  
    OP
       Oct 12, 2020
    学到了,感谢各位大佬!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2882 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:56 · PVG 09:56 · LAX 18:56 · JFK 21:56
    ♥ Do have faith in what you're doing.