如何正确设置通用启动屏幕? [英] How to setup launch Screen for universal correctly?

查看:120
本文介绍了如何正确设置通用启动屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何解决iPad的启动屏幕.我特意创建了一个支持通用性的新项目.相同的图像名称,但适用于新项目,但我的旧项目未显示.它显示一个白色的空白屏幕.我能知道是什么原因吗?

I have no idea how to solve my launch screen for iPad. I purposely created a new project which supports for universal. Same image name but it works for new project but my old project its not displaying out. it shows a white blank screen. May I know what is the reason?

推荐答案

确保在 Project General 设置中选择了LaunchScreen文件,如下所示:

Make sure that your LaunchScreen file is selected in the Project General Settings, like so:

此外,如果您在启动屏幕上使用情节提要,请确保将唯一的视图控制器设置为初始视图控制器.,例如:

Also, if you're using a storyboard for your Launch Screen, make sure there the only view controller is set as initial view controller., like so:

因此,如果重启设备不适合您,请尝试以下操作:

So if restarting the device did not work for you, try the following:

  1. 将图像重新添加到您的Assets.xcassets中.
  2. 重命名图像.
  3. 然后从此答案 https://stackoverflow.com/a/35481616/3231194 中,尝试取消选中<您的UIImageView的c0>.
  1. Re-adding the image into your Assets.xcassets.
  2. Renaming the image.
  3. And from this answer, https://stackoverflow.com/a/35481616/3231194, try unchecking the Clears Graphics Context of your UIImageView.

这篇关于如何正确设置通用启动屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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