iPhone<4(<3、3g、3gs)、iPhone 4 和 iPad 都有不同的屏幕分辨率。我想让我的 iOS 应用程序图形在所有这些设备上都具有完美的质量。换句话说,我想要为 iPhone <4、iPhone 4 和 iPad 提供独特的图形。
我知道我可以在运行时检查我们正在使用哪个设备,但是我可以在构建时执行此操作吗?换句话说,我可以在AppStore上制作一个特定于iPhone 4以下版本的应用程序,以及适用于iPhone 4的其他版本的应用程序和适用于iPad的另一个版本吗?因此,所有这些应用程序的名称相同,并且实际上是同一个应用程序。但它们仅包含设备特定的图形(这样应用程序的大小尽可能最小)。
或者我是否需要向 AppStore 提交一份包含所有不同图形的应用程序?那么即使是 iphone3 版本也包含 iPad 图形吗?
iPhone<4 (<3, 3g, 3gs), iPhone 4 and iPad all have different screen resolution. I want to make my iOS application graphics to be perfect quality to all of these devices. In other words, I want to have unique graphics for iPhone <4, iPhone 4 and iPad.
I know I can in runtime check which device we are using but could I do this anyway at build time? In other words, can I make an application to AppStore that is specific to iPhone's below version 4, and other version of the application for iPhone 4, and another version for iPad? So that all of these applications are named the same, and are actually the same application. But they contain only the device specific graphics (this way the application's size is smallest as possible).
Or do I need to submit one application to AppStore including all of the different graphics? So that even the iphone3 version contains iPad graphics?
发布评论
评论(2)
您可以只包含图形的多个版本。您应该拥有 iPhone <名为
myImage.png
的 4 个版本和名为[电子邮件受保护]
。正确的图像将自动用于适当的设备。对于 xib 文件,您可以添加后缀
-iPhone
和-iPad
来区分它们。You can just include multiple versions of your graphics. You should have the iPhone < 4 versions named
myImage.png
and the retina display versions named[email protected]
. The correct image will be used automatically for the appropriate device.With the xib files, you can put a suffix
-iPhone
and-iPad
to distinguish them.不可以,每个名字您只能向应用商店提交一份应用程序。如果您提交不同的应用程序版本,它将取代前一个版本。您需要 创建一个通用应用程序,并使用设备惯用语(基本上是将 -iPad、-iPhone)附加到它们后面。
No, you can only submit one application per name to the app store. If you submit a different application build it will replace the previous one. You need to create a Universal application, and name your resources (images, nibs) with device idioms (basically appending -iPad, -iPhone) to them.