iOS App- LaunchScreen.storyboard displays white on ios 14.2

旧巷老猫 提交于 2021-02-10 16:00:38

问题


I have Xcode version 12.0.1. I have run the app on simulator with ios 14, the launch screen working fine it shows the image I want to show(splash Screen), but when I run the app on real device which has ios 14.2 the launch screen just appeared to be white. can some one help me with this thanks in advance.


回答1:


Faced the same problem. The issue was the size of the image used in the launch screen storyboard. This lead to the whole launch screen just being black.

Solution 1: What fixed it in our case was:

  1. Choose a smaller size image
  2. Delete App from device/simulator (Sometimes required)
  3. Restart device/simulator (Sometimes required)

The main reason is the larger image so just replace it with a smaller one.

Solution 2: Place your splash screen image outside the Images.xcassets folder. (But the issue with this approach is if you are supporting Dark Mode then it's not possible anymore to set a different image for dark and light mode.)



来源:https://stackoverflow.com/questions/65033765/ios-app-launchscreen-storyboard-displays-white-on-ios-14-2

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