How to setup launch Screen for universal correctly?

风格不统一 提交于 2019-12-11 10:16:29

问题


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?


回答1:


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:

EDIT:

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

  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.




回答2:


If you're using PNG image, make sure that Alpha is unchecked while saving the image.



来源:https://stackoverflow.com/questions/46397878/how-to-setup-launch-screen-for-universal-correctly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!