我们的通用应用程序仅处于横向模式。我们需要为 iPhone 4 和 iPhone 5 添加启动画面。
对于纵向的 iPhone 5,我们使用 Default-568h@2x.png
。如何为 iPhone 5 设置横向启动屏幕?
最佳答案
根据 Apple 文档:Providing Launch Images for Different Orientations ,
每个特定于方向的启动图像都必须在其文件名中包含一个特殊的修饰符字符串。 特定方向的启动图像文件名的格式如下:
<basename><orientation_modifier><scale_modifier><device_modifier>.png
例如:
1) Default-Portrait.png
2) Default-PortraitUpsideDown.png
3) Default-Landscape.png
4) Default-LandscapeLeft.png
5) Default-LandscapeRight.png
注意: 仅 iPad 应用程序中使用的启动图像支持这些修饰符。
因此您必须根据 iPhone 5 的方向更改您的图像。
两种方法:
1) Rotating the Splash Image to 90 Degree.
2) Inverting the Dimensions (320 * 480 -> 480 * 320).
关于iphone - 在 iPhone 5 的横向模式下启动启动画面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15061622/