美文网首页
禁用iOS13的暗黑模式

禁用iOS13的暗黑模式

作者: drmi | 来源:发表于2019-06-26 10:33 被阅读0次

参考网址:
https://stackoverflow.com/questions/56537855/is-it-possible-to-opt-out-of-dark-mode-on-ios-13

参考苹果官方文档:
https://developer.apple.com/documentation/appkit/supporting_dark_mode_in_your_interface/choosing_a_specific_interface_style_for_your_ios_app?language=objc

According to Apple's "Implementing Dark Mode on iOS" Session (https://developer.apple.com/videos/play/wwdc2019/214/ starting at 31:13) it is possible to set overrideUserInterfaceStyle to UIUserInterfaceStyleLight or UIUserInterfaceStyleDark on any view controller or view, which will the be used in the traitCollection for any subview or view controller.

As already mentioned by SeanR, you can set UIUserInterfaceStyle to Light or Dark in you app's plist file to change this for your whole app.

即在info.plist中添加UIUserInterfaceStyle设置为light或者dark即可强制修改模式

相关文章

  • iOS13禁用暗黑模式

    iOS13禁用暗黑模式 info.plist文件中添加 Appearance : Light

  • IOS13 暗黑模式 禁用

    iOS13黑暗模式开启后,app显示会出现很多意外显示情况。暂时屏蔽是最好的选择。当开启黑暗模式,且在项目的tar...

  • 禁用iOS13暗黑模式

    如果手机开启暗黑模式,没有做暗黑模式的app显示会有问题,如果不打算支持暗黑模式,需要将暗黑模式禁止。在plist...

  • 禁用iOS13的暗黑模式

    参考网址:https://stackoverflow.com/questions/56537855/is-it-p...

  • 暗黑模式开发

    iOS13暗黑模式适配(项目开发版) iOS 13 DarkMode 暗黑模式 IOS 暗黑模式适配---基础适配

  • uni-app做iOS的夜间模式

    iOS13适配暗黑模式/夜间模式/深色模式/暗黑主题(DarkMode)问题:1.监听Android深色或浅色模式...

  • ios13适配不断更新

    1. 暗黑模式 iOS13使用暗黑模式时,UIView默认背景色会变成暗黑色。适配暗黑模式的工作量较大,改为强制使...

  • iOS13 适配总结

    1. 暗黑模式 iOS13使用暗黑模式时,UIView默认背景色会变成暗黑色。适配暗黑模式的工作量较大,改为强制使...

  • 自己适配iOS13解决的问题总结

    自己适配iOS13解决的问题总结 1.暗黑模式Dark Mode iOS 13 推出暗黑模式,UIView默认背景...

  • iOS:暗黑模式适配

    简介:iOS13苹果推出的暗黑模式,在去年苹果已经声明必须适配暗黑模式否则会下架。网上有很多好的文章来适配暗黑模式...

网友评论

      本文标题:禁用iOS13的暗黑模式

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