iOS LaunchImage尺寸对照表(. xcassets)

本文探讨了在iOS应用开发中,选择使用.xcassets内的LaunchImage还是使用LaunchScreen.storyboard的优劣,并提到了针对不同iOS版本的适配问题及苹果审核的具体要求。

Q:用.xcassets的LaunchImage 还是用LaunchScreen.storyboard?

A:原则:你开心就好!But,使用LaunchScreen.storyboard时,通过Today插件或者桌面3D-Touch,会使用到启动页。

LaunchImage(xcassets)尺寸对照表:

对照表
iOS 7.0 + iOS 8.0 and later  Protrait & Landscape

 

请选择上:iOS 7.0 and later

填坑记录:

情况:项目兼容的iOS版本9.0+,LaunchImage的“iOS 7.0 and later”就理所当然的未选择。

结果:Archive发布验证时报错:

"Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the ‘iOS Human Interface Guidelines‘ at https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen."

分析:虽然项目兼容iOS版本是9.0+,但是苹果还是要求开发者去兼顾适配iPhone5系列。你可以这么想,iPhone 4s 或 iPhone 5也是可以使用9.0系统的。

处理:LaunchImage的“iOS 7.0 and later”请勾上。

 

言子玉 · 出品   @2019-03-26

仰望星空,让泪水倒流

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值