设置appicon和启动图

设置appicon

General – App Icon Source 设置AppIcon

图片大小

iphone 6P(@3x) 180x180

iphone 6(@2x)

iphone5/5s (@2x) 120x120

iphone4/4s (@2x)

设置launchimage

第一种方法

General – launch image source – use asset catalog 设置launchimage(删掉launchScreen.xib)

iphone 6P(@3x) 1242 x 2208 (@3x) for portrait –Retina HD 5.5

iphone 6(@2x) 750 x 1334 (@2x) for portrait – Retina HD 4.7

iphone5/5s (@2x) 640 x 1136 (@2x) for portrait – Retina 4

iphone4/4s (@2x) 640 x 960 (@2x) for portrait – 2x

第二种方法

使用launchScreen.xib

在xib中拖入一个imageview 设置好约束 上下左右都为0 为imageview添加图片 然后在Images.xcassets中添加相同名字的new image set。在右边将Devices 改为 Device specific

3x 适用于 iphone 6P

Retina 4 2x 适用于 iPhone5s/5

2x 适用于 iphone4s/iphone6

(不建议使用这种方法,如果同时适配4s和6的话,图片会失真,因为4s和6屏幕的比例不同)

posted @ 2016-02-24 12:41  CodingMann  阅读(608)  评论(0编辑  收藏  举报