Launch Screen storyboard not displaying image

后端 未结 30 1513
忘了有多久
忘了有多久 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:27

    Was changing the background image of the splash screen and the new image wasn't showing (react native project).

    Following the answers from others.

    I did all the below and it was fixed:

    • Clean build.
    • Remove app from simulator
    • Quit simulator
    • Restart XCode
    • Run app again
    0 讨论(0)
  • 2020-12-07 10:29

    Just to add my $0.02 to this question; I got this solved by using PNG images instead of JPG/JPEG images.

    After converting the images to PNG and crunching them to reduce the size a little, everything worked fine.

    0 讨论(0)
  • 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!

    0 讨论(0)
  • 2020-12-07 10:31

    I had that problem after adding image to project and shotdown the device the problem solved

    0 讨论(0)
  • 2020-12-07 10:32

    My issue.

    Reason: I have renamed the images after dragging into Xcode. Solution: Don't rename images after dragging into Xcode. It creates problems for understanding Xcode. Rename images before dragging/adding into Xcode.

    Hope it helps you out!

    0 讨论(0)
  • 2020-12-07 10:33

    Restart your device and clear x-code derived data

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