IOS启动图大小
2018-06-07 本文已影响268人
上玄月_lxl
iphone屏幕、启动图大小汇总(已更新至最新2019-4-25)
目录
一、iphone屏幕大小概述
二、启动图大小
三、icon大小
四、启动图设置
五、补充
一、手机大小
手机尺寸总结如下:

二、启动图大小
文字总结
iPhone Portrait iOS 8-Retina HD 5.5 (1242×2208) @3x
iPhone Portrait iOS 8-Retina HD 4.7 (750×1334) @2x
iPhone Portrait iOS 7,8-2x (640×960) @2x
iPhone Portrait iOS 7,8-Retina 4 (640×1136) @2x
iPhone Portrait iOS 5,6-1x (320×480) @1x
iPhone Portrait iOS 5,6-2x (640×960) @2x
iPhone Portrait iOS 5,6-Retina4 (640×1136) @2x
iphone xs 5.8英寸 2436 x 1125 像素分辨率,458 ppi
iphone xs max 6.5英寸 2688 x 1242 像素分辨率,458 ppi
iphone xr 6.1英寸 1792 x 828 像素分辨率,326 ppi
图片介绍

对于不需要横屏、不适配ipad的启动图可参照右侧选项进行配置

最新版xcode需求图

三、icon大小
icon图大小如图:

最新icon图大小:

四、启动图设置
对于某些xib文件作为启动页的项目来说(例如RN项目),可在Images.xcassets文件中进行添加LaunchImage,然后更改xib启动为图片启动即可。
1、在Images.xcassets中点击1、2即可看到3

2、根据下图配置选项
*注意:箭头1 一定指向你上面配置的LaunchImage的启动页,如果你的配置项为LaunchImage2 而Images.xcassets中LaunchImage2 为空,那么请将箭头1中的内容指向你之前配置好的LaunchImage上,另一个可删除。
箭头2选项为空。

五、补充
如果按照上面方法设置了,但是启动图未更换(常见RN项目),那么:
1、尝试删掉真机或模拟器的app,重装app尝试
2、删掉项目中xib启动页,重装app尝试
mark完毕,如有错误或遗漏欢迎留言