Q:用.xcassets的LaunchImage 还是用LaunchScreen.storyboard?
A:原则:你开心就好!But,使用LaunchScreen.storyboard时,通过Today插件或者桌面3D-Touch,会使用到启动页。
LaunchImage(xcassets)尺寸对照表:

请选择上: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
仰望星空,让泪水倒流
本文探讨了在iOS应用开发中,选择使用.xcassets内的LaunchImage还是使用LaunchScreen.storyboard的优劣,并提到了针对不同iOS版本的适配问题及苹果审核的具体要求。
&spm=1001.2101.3001.5002&articleId=88828399&d=1&t=3&u=7c39fe1866a340fdaa96b7ee89a7d859)
512

被折叠的 条评论
为什么被折叠?



