问题
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
)
回答1:
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...
回答2:
I believe you are using LaunchScreen.xib
If you want to use LaunchScreen in Images.xcassets, you need to do following
Launch Screen File is empty
Also you can set the icons for different devices and other options from here
来源:https://stackoverflow.com/questions/29370337/launchimage-in-images-xcassets-with-launchscreen-xib