iphone - Xcode 6 启动屏幕尺寸如何/在哪里对应于 Apple 文档?

标签 iphone xcode6

我确信这个信息在某个地方,但我找不到它,而且苹果开发者热线似乎不知道我在说什么。在 Xcode 启动屏幕的资源库中,有一些插槽标记为:

iPhone 肖像 ---> Retina HD 5.5 和 Retina HD 4.7 iOS8

iPhone 肖像 ---> 2x 和 Retina 4 iOS 7、8

iPhone 肖像 ---> 1x、2x 和 Retina 4 iOS 5、6

我已经准备好启动屏幕,并且有这些单独文件的大小,但我不知道它们的大小如何与 Xcode 中的这些 Apple 标签相对应。此外,这里的 Apple 文档(https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Appendices/Properties.html#//apple_ref/doc/uid/TP40011225-CH26-SW1 这是 Apple Developer 向我推荐的)仅指 iphone 6 和 6s 尺寸,与 Xcode 标签组织不符。

这看起来应该是 1 分钟的查询。我缺少什么以及这些 super 基本信息在哪里?

最佳答案

如果您在资源目录中选择图像“插槽”并显示属性检查器(位于右侧),它将显示(除其他外)每个图像的“预期大小”。这样做,看起来像:

iPhone Portrait iOS8 Retina HD 5.5: 1242 x 2208
iPhone Portrait iOS8 Retina HD 4.7: 750 x 1334

在属性检查器中,您还可以通过一系列复选框选择要包含的“槽位”。

enter image description here

文档方面,请参阅 Icon and Image Sizes section of the iOS Human Interface Guidelines .

从那里转述:

iPhone 6 Plus: Use a Launch File
iPhone 6: Use a Launch File
iPhone 5: 640 x 1136
iPhone 4s: 640 x 960
iPad (@2x): 1536 x 2048 (portrait), 2048 x 1536 (landscape)
iPad (@1x): 768 x 1024 (portrait), 1024 x 768 (landscape)

另请参阅Launch Images section ,其中表示:

Although it’s best to use a launch file for iPhone 6 and iPhone 6 Plus, you can instead supply static launch images if necessary. If you need to create static launch images for these devices, use the following sizes:

For iPhone 6:
750 x 1334 (@2x) for portrait
1334 x 750 (@2x) for landscape

For iPhone 6 Plus:
1242 x 2208 (@3x) for portrait
2208 x 1242 (@3x) for landscape

值得注意的是,如果您仅支持 iOS 8,则可以仅使用启动 XIB 或 Storyboard,而无需担心特定的图像尺寸。 Launch Images部分有相关信息。

我最近的应用程序更新(仅限 iOS 8)正在使用 XIB 文件(一个用于 iPhone,一个用于 iPad),效果非常好。

关于iphone - Xcode 6 启动屏幕尺寸如何/在哪里对应于 Apple 文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30676843/

相关文章:

iphone - iAd didFailToReceiveAdWithError 总是调用

ios - iOS 应用程序的远程访问

iphone - 在 drawRect : of UIView 之外的 iOS 中为 CGLayer 创建窗口图形上下文

iphone - 使用 Core Data 会加速键值解析吗?

iphone - 设备关闭时音频暂停不在后台播放 Xcode 4.2

ios - Else 语句中的 AlertView

ios - Swift - 文本字段不适合 Canvas

javascript - 无法在用于 iOS UI 测试的密码文本字段中输入文本

ios - 无法在 Xcode 6 Beta 5 上运行测试

xcode6 - Xcode 6.1.1 仪器不能在设备上使用计数器模板