LaunchImage in Images.xcassets with Launchscreen.xib

社会主义新天地 提交于 2019-12-11 02:39:45

问题


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

  1. Launch Screen File is empty

  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!