Launch Screen storyboard not displaying image

后端 未结 30 1649
忘了有多久
忘了有多久 2020-12-07 09:50

I\'m trying to get an image to display as the launch screen from my Launch Screen.storyboard file, however the image never displays. I have labels that show up fine, but the

30条回答
  •  抹茶落季
    2020-12-07 10:30

    It happened to me and makes me crazy, beyond get me lose some minutes 'til I figure it out.

    So, like was said before:

    1. Import the desired image to your Xcode project (just drag and drop it)
    2. Change its Constraints and Alignment
    3. Update frames resolving Auto Layout issues
    4. In the Attributes inspector tab menu (generally in right corner menu xCode), on Image view > Image, remove image extension (.png or .jpg) - that's the trick

    On the design screen, it will not appear, but when you run your app, it will be shown.

    I hope it can help!

提交回复
热议问题