Launch Image not showing up in iOS application (using Images.xcassets)

后端 未结 13 919
南方客
南方客 2020-11-30 01:20

I\'m having some trouble getting my launch image to show up in my application.

I have created all the static image files in the Images.xcassets file in an asset set

13条回答
  •  野性不改
    2020-11-30 01:34

    I've just spent a little while on the same problem, but found the answer, and put it into a Youtube Tutorial

    1. Create your ArtWork Image. 1024x1024 that conforms to Apple's requirements for Appicons and LaunchImages
    2. Set up a folder to hold your newly created Assets.xcassets
    3. Open Asset Creator Pro and drag your new image into it.
    4. Do your app icons first, putting the created file into your new folder.
    5. Using the SAME image, select LaunchImages next, and "Append" the created set into the new, existing Assets.xcassets
    6. Open your XCode project, and delete the eisting - probably empty - Assets.xcassets folder. If you have other files in it, then just delete the Appicons and Launchimages sets.
    7. Drag your newly created Assets into the XCode project, making sure you set the option to Copy the files. Sometimes this can be off! beware.
    8. check what's in the cassets, you should see your new images.
    9. Make sure the line Launch Screen File in your Project settings is BLANK.
    10. Make sure your LaunchScreen storyboard is BLANK. Anything in there and the images wont load.

    test it.

    Watch the video.

提交回复
热议问题