GaryLee
V2EX  ›  iOS

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

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

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