iphone - 在 iPhone 5 的横向模式下启动启动画面

标签 iphone ios objective-c ios6

我们的通用应用程序仅处于横向模式。我们需要为 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/

相关文章:

没有 UILabels 的 iOS 动态表格 View 单元格高度

iphone - 使用 PhoneGap 在 iPhone/Android/WP7 上进行应用内购买

iOS 在后台或应用程序激活时执行预定操作

ios - 如何通过 Swift 扩展实现委托(delegate)方法

ios - 如何跟踪缩放的 UIScrollView?

iphone - 不需要的变量释放(iOS)

iphone - UITableViewCell 上的 UIPopoverController

objective-c - 我如何以编程方式知道 NSTextField 当前是否正在显示占位符?

iphone - @property/@synthesize 问题

ios - iOS SDK 中的多行列 tableView