启动图像或启动xib / storyboard? [英] Launch image or launch xib / storyboard?

查看:97
本文介绍了启动图像或启动xib / storyboard?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试完成我的第一个iOS应用程序提交,我在这里真的很困惑。该文档告诉我,我需要一个启动图像,并为我提供iPhone 6和6+的尺寸,但后来在几个地方清楚地说启动XIB或故事板是支持iPhone 6大小的应用程序所必需的。

I'm trying to finish my first iOS app up for submission and I'm just getting really confused here. The documentation is telling me I need a launch image and giving me the dimensions for iPhone 6 and 6+ but then clearly says in a couple places that "The launch XIB or storyboard is required to support iPhone 6 sized apps."

我很困惑,这里没有尽头。如果我需要发布故事板,为什么我要包括发布图像?我还没弄明白发布故事板是什么......

I'm confused to no end here. Why am I including launch images if I need a "launch storyboard"? I haven't even figured out what a launch storyboard is yet...

推荐答案

如果你正在使用Xcode 6和对于iOS 8,你应该使用发布故事板,这样就不需要提供不同大小的多个发布图像。

If you're developing with Xcode 6 and for iOS 8 exclusively, then you should use launch storyboards, which avoid the need to provide several launch images at different sizes.

此故事板由Xcode 6在启动新项目时自动生成,但您可能一直在使用较旧的项目模板。

This storyboard is automatically generated by Xcode 6 when starting a new project, but you might have been using an older project template.

请参阅此处了解如何使用Xcode 6创建启动故事板: http://oleb.net/blog/2014/08/replacing-launch-images-with-storyboards/

See here for how to create a launch storyboard using Xcode 6: http://oleb.net/blog/2014/08/replacing-launch-images-with-storyboards/

请注意,如果您愿意,也可以使用常规的单个XIB文件而不是整个故事板。我认为Xcode 6项目模板为此目的使用XIB文件。

Please note that you can also use a regular, "single" XIB file instead of a whole storyboard if you like. I think the Xcode 6 project templates use XIB files for that purpose.

不幸的是,如果你的应用程序也针对旧版本的iOS(甚至iOS 7),你会没有其他选择,除了还包括所有iPhone设备的启动图像(除了iPhone 6,显然不运行这些版本的iOS)。这是一个痛苦,但苹果公司通过为未来发展提供这一新功能做出了正确的举措。

Unfortunately, if your app is also targeting older versions of iOS (even iOS 7), you'll have no other option than also including launch images for all iPhone devices (except iPhone 6, which doesn't run these versions of iOS, obviously). This is a pain, but Apple made the right move by providing this new feature for future developments.

这篇关于启动图像或启动xib / storyboard?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆