iOS LaunchImage尺寸对照表(. xcassets)

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

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

LaunchImage(xcassets)尺寸对照表:

iOS LaunchImage尺寸对照表(. xcassets)_第1张图片 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

仰望星空,让泪水倒流

你可能感兴趣的:(iOS)