I want to change my app interface to light mode.
I implemented following code on all ViewControllers:
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. The following image is dark mode on.
I added in the Info.plist User Interface Style to light. Now it's working fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.