UIImageView missing images in Launch Screen on device

后端 未结 30 1843
遇见更好的自我
遇见更好的自我 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:35

    I had this problem in iOS 10 on an iPhone 6 and also in the Simulator. My image was in a folder and that seemed to be the issue. I removed the image from the folder in Xcode and put it in the project's base directory which solved the problem.

    0 讨论(0)
  • 2020-11-30 17:36

    I had exactly the same issue on an iPhone 6.

    The very strange fact is that I was able to use another image from my images.xcassets which had the same size, compression, color space ...

    I'm not able to find why it doesn't work but I found a solution : Simply put your file outside your images.xcassets and use its full name (with extension) in Interface Builder

    Hope this help !

    0 讨论(0)
  • 2020-11-30 17:37

    I was having the same problem, but restarting the device didn't help. What worked for me was deleting the UIImageView from my launch storyboard and adding a new one.

    0 讨论(0)
  • 2020-11-30 17:38

    I had the same for app installed from TestFlight. Delete app -> then restart iPhone -> then reinstall app works for me. Just reinstall app or just restarting device didn't help.

    0 讨论(0)
  • 2020-11-30 17:38

    Select the ImageView and then remove the image extension (.png or .jpg) in the attributes inspector tab > Image view > Image > Image Name.

    On launchscreen.storyboard the image will not appear but it will be there in device. This worked for me.

    0 讨论(0)
  • 2020-11-30 17:39

    Remove app from mobile and then restart mobile and install app again. now the issues will be solved

    0 讨论(0)
提交回复
热议问题