iOS 13中的黑暗模式启动屏幕 [英] Dark mode launch screen in iOS 13

查看:323
本文介绍了iOS 13中的黑暗模式启动屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经更新了iOS应用,使其可以在iOS 13上以暗模式运行,但是在尝试使启动屏幕看起来不错时遇到了麻烦.

I've updated my iOS app to work in dark mode on iOS 13 but I am having trouble trying to get the launch screen to look good.

当前它是带有应用程序徽标的明亮的白色屏幕,在黑暗模式下看起来很糟糕.我尝试将启动屏幕的背景色设置为我用任何外观"为白色而深色外观"为黑色制成的颜色资产-但是启动屏幕始终始终显示为白色.

Currently it is a bright white screen with the app logo which looks awful in dark mode. I have tried setting the background colour of the launch screen to be a colour asset that I made with "Any Appearance" being white and "Dark Appearance" being black - but the launch screen still always shows as white.

有什么方法可以使我的启动屏幕在黑暗模式下正常工作?

Is there any way to get my launch screen to work properly in dark mode?

推荐答案

设置启动屏幕故事板时,将视图背景"颜色设置为系统背景颜色".在亮模式下为白色,在暗模式下为黑色.无需使用自己的颜色资产.

When setting up the Launch Screen storyboard, set the view "Background" color to "System Background Color". This will be white in light mode and black in dark mode. No need to use your own color asset.

这篇关于iOS 13中的黑暗模式启动屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆