[英]navigation bar and tabor does not change his color when switching dark and light mode
I want to change my app interface to light mode.我想将我的应用程序界面更改为浅色模式。
I implemented following code on all ViewControllers:我在所有 ViewController 上实现了以下代码:
overrideUserInterfaceStyle = .light
When I switch to dark mode, the navigation bar and tab bar change his color to black.当我切换到深色模式时,导航栏和标签栏将他的颜色更改为黑色。 The rest is still white as it should be.
rest 应该是白色的。 The following image is dark mode on.
下图是深色模式开启。
I added in the Info.plist User Interface Style to light.我在 Info.plist用户界面样式中添加了灯光。 Now it's working fine.
现在它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.