具有Launchscreen.xib的Images.xcassets中的LaunchImage [英] LaunchImage in Images.xcassets with Launchscreen.xib
问题描述
我在iOS 8和7上使用Xcode 6,我有一个Launchscreen.xib
,在General Target
中,我已经很好地配置了我的项目:
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
但是我认为Launchscreen.xib
在iOS 7.1上不起作用.
But I think Launchscreen.xib
doesn't work on iOS 7.1.
所以我在Images.xcassets
中为其他不支持Launchscreen
So I've made LaunchImage
in Images.xcassets
for other iOS which doesn't support Launchscreen
http://i.imgur.com/2YpSbeI.png
我不知道为什么,这使我有2条警告:
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.
如何修复它并仅使用Launchscreen.xib
(如果该方法适用于所有iPhone/iPad,或者在LaunchImage
(Images.xcassets
)中使用我的两个图像
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(如果适用于每个 iPhone/iPad,或在LaunchImage(Images.xcassets)中使用我的两个图像
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是iOS 8的功能,因此,如果要使用iOS 7,则应添加启动图像.
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...
这篇关于具有Launchscreen.xib的Images.xcassets中的LaunchImage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!