LaunchImage in Images.xcassets with Launchscreen.x

2019-07-18 15:37发布

I'm using Xcode 6 with iOS 8 and 7, I have a Launchscreen.xib, and in General Target I've well configured my project :

http://i.imgur.com/cKLcBzS.png

But I think Launchscreen.xib doesn't work on iOS 7.1.

So I've made LaunchImage in Images.xcassets for other iOS which doesn't support Launchscreen

http://i.imgur.com/2YpSbeI.png

I don't know why, that makes me 2 warnings :

/Users/../Desktop/ProjectName/ProjectFolder/Images.xcassets: The launch image set "LaunchImage" has 2 unassigned images.

How to fix it and use only Launchscreen.xib (if that works for every iPhone/iPad, or use my two images in LaunchImage (Images.xcassets)

2条回答
Melony?
2楼-- · 2019-07-18 16:03

I believe you are using LaunchScreen.xib

If you want to use LaunchScreen in Images.xcassets, you need to do following

  1. Launch Screen File is empty

  2. Also you can set the icons for different devices and other options from here

查看更多
SAY GOODBYE
3楼-- · 2019-07-18 16:22

How to fix it and use only Launchscreen.xib (if that works for every iPhone/iPad, or use my two images in LaunchImage (Images.xcassets)

Launchscreen.xib is a feature of iOS 8, so if you are targeting iOS 7 You should add launch images.

What worked for me is to leave Launch Screen File field empty and to use assets catalog with launch images. I tried to use both together but I couldn't make good results...

enter image description here

查看更多
登录 后发表回答