如何设置App的启动图,也就是Launch Image

First:点击Image.xcassets 进入图片管理,然后右击,弹出"New Launch Image"

Second:右侧功能菜单栏的勾选可以让你选择是否要对ipad,横屏,竖屏,以及低版本的ios系统做支持.废话少说直接上图


如何设置App的启动图,也就是Launch Image_第1张图片
Third:将规定尺寸的图片从你的文件中拖动进到固定位置.

图片大小尺寸开提示,把对应图片一一拖入就可以了

Fourth:去项目设置General下的App Icons and Launch Images检查一下

如何设置App的启动图,也就是Launch Image_第2张图片

Fifth:坑点来了,前面我都设置好了,为什么还是没有启动图呢?

去LaunchScreen.xib里看一下


如何设置App的启动图,也就是Launch Image_第3张图片
去掉Use as Launch Screen


Finish:检查一下Launch Screen File   要置为空哦

如何设置App的启动图,也就是Launch Image_第4张图片

The end:这样启动图就出来了,the others,如果呢,你觉得这个启动图停留的时间太短,可以在第一个加载的页面中告诉他延迟几秒,代码如:

[NSThreadsleepForTimeInterval:3];

这样就3秒了。

你可能感兴趣的:(如何设置App的启动图,也就是Launch Image)