iOS LaunchImage尺寸详细对照表(. xcassets)

2020年9月14日 更新:Apple审核规则发生了变化,要求启动页使用LaunchScreen.storyboard。

我这边文章意义不大了。同学们,遵纪守法吧。



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-15

仰望星空,让泪水倒流

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容