启动 Image Xcode 6 iOS 7 警告

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26976334/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:11:22  来源:igfitidea点击:

Launch Image Xcode 6 iOS 7 warning

iosxcodexcode6

提问by Piero

In my iOS project i have put iOS 7.1as Deployment Target, but know i have this warning:

在我的 iOS 项目中,我已经把iOS 7.1as Deployment Target,但知道我有这个警告:

Applications using Launch Screen Files and targeting iOS 7.1 and earlier need 
to also include a Launch Image in an Asset Catalog.

i have add in the images.xcassetsthe LaunchImageFolder, and i have add the Launch Image for the 4-inch screen, but i still have the warning, how i can do to solve it?

我已经添加images.xcassetsLaunchImage文件夹中,并且我已经添加了Launch Image for the 4-inch screen,但我仍然有警告,我该怎么做才能解决它?

thanks

谢谢

EDIT: this is the target setting:

编辑:这是目标设置:

enter image description here

在此处输入图片说明

回答by rckoenes

You have not set the launch Images Sourceso iOS 7 has now idea where to get the images from.

你还没有设置launch Images Source所以 iOS 7 现在知道从哪里获取图像。

Set this to asset catalog where you have added the launch screens, iOS 8 will use the Launch Screen Fileif both are set.

将此设置为您添加启动屏幕的资产目录,Launch Screen File如果两者都设置,iOS 8 将使用。