UIImageView missing images in Launch Screen on device

后端 未结 30 1905
遇见更好的自我
遇见更好的自我 2020-11-30 16:39

I have an app that supports iOS8 and later, built in Xcode 7 and I am using a XIB for a Launch Screen (I do not have launch images). The view contains a single UILabel with

30条回答
  •  抹茶落季
    2020-11-30 17:18

    In my case I it was the image name.
    I added an image named Default-568h@2x.png to LaunchScreen.xib - one of my old launch screens just for testing purposes. I was building on the iPhone X Simulator, the image didn't show up.

    Changing the name to something neutral (MyImage.png) solved the issue.

    It seems that the @2x was part of the problem as well as the -568h. Which makes some sense on a -812h@3x device.

提交回复
热议问题