Launch images show black, when using Asset Catalog

前端 未结 9 894
耶瑟儿~
耶瑟儿~ 2021-02-02 12:33

In Xcode 5, I use the asset catalog to manage the app icons and launch images for my app. The app icons work fine on all devices, but the launc

相关标签:
9条回答
  • 2021-02-02 13:24

    Make sure the image is not transparent. In my case it is transparent instead of white

    0 讨论(0)
  • 2021-02-02 13:26
    • Make sure your images are accurate size according to Apple guidelines.
    • Make sure, You will select only one option , either launch screen file or Launch Image Source. You can find these two options in Project build settings -> General

    My suggestion to you is to select Launch Image Source as Image.Assets. Create splash image assets there in Image.assests folder.

    Reference image for right configuration:

    0 讨论(0)
  • 2021-02-02 13:35

    Although this isn't the OPs issue in this case, this is for anyone was has multiple targets in their project: also make sure the asset catalog is included in all targets (if you're using a single catalog for all targets). In my case it had defaulted (or I had set it at some point in the past) to the first target, and thus my other targets had no launch screen. Strangely, they still had icons.

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