为iPhone和iPhone 4进行开发之间有什么变化? [英] What's the changes between developing for the iPhone and the iPhone 4?

查看:53
本文介绍了为iPhone和iPhone 4进行开发之间有什么变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我正在开发一个iPhone应用程序,但我从某些人那里得知,iPhone和iPhone 4之间的尺寸是有区别的,如果不是iPhone 4可以使用保留显示,它将被拒绝.苹果.

Hey, I'm working on an iPhone app but I've heard from some people that it's a size difference between the iPhone and the iPhone 4 and if it's not iPhone 4 committable to use the retain display it will be rejected by Apple.

所以我的问题是:由于不再是320 x 480,我的应用程序需要使用什么尺寸. 在旧版iPhone上使用时,该应用程序会自动缩小尺寸吗?还是我需要对其做更多处理?

So my questions is: What size does my app need to be in since it's not 320 x 480 anymore. And will the app automatically shrink the size down when it's used on an older iPhone or do I have to do something more with it?

希望这对你们来说很有意义!

Hope this makes sense to you guys!

先谢谢您

推荐答案

这实际上是一个UI设计问题.幸运的是,Apple使开发人员轻松升级其iPhone 4视网膜显示屏应用程序变得不那么容易了.您需要做的就是遵循特定的命名约定.

It's actually a UI design question. Luckily Apple has made it quit easy for developers to upgrade their apps for iPhone 4's retina display. All you need to do is follow a specific naming convention.

对于您项目中的所有UI文件(是的,那些PNG文件),您都应为其制作一组新的副本,将高度和宽度加倍(例如320 x 480 => 640 x 960),然后重命名通过以下方式:

To all your UI files in your project (yes, those PNG files), you should make a new set of copies of all of them, doubling heights and widths (e.g. 320 x 480 => 640 x 960), and rename them in the following way:

  • myFirstImage.png => myFirstImage@2x.png
  • myFirstImage.png => myFirstImage@2x.png

仅此而已,希望对您有所帮助.

And that's all, hope it helps.

已编辑:只有一个例外.图标文件和插图文件.它稍微复杂一些.您应该下载iTunes_Connect_Developer_Guide并查看相关章节.

Edited: there is one exception. The icon files and the artwork file. It is slightly more complicated. You should download the iTunes_Connect_Developer_Guide and take a look at related sections.

这篇关于为iPhone和iPhone 4进行开发之间有什么变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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