iPhone4 960x640 - 对应用程序有影响吗?

标签 iphone ios4

Possible Duplicate:
How to accommodate for the different screen resolution of iPhone 4?

新的解决方案对现有应用程序意味着什么?

开发工具是否可以轻松支持新的分辨率而不进行更改,如果可以,如何实现?那些没有正确利用这一点的开发人员的应用程序会发生什么?

应用商店接受应用的解决方案合规性规则是什么?

最佳答案

根据最新(2010-06-04)iPhone App编程指南.pdf第75页:

On devices with high-resolution screens, the imageNamed:, imageWithContentsOfFile:, and initWithContentsOfFile: methods automatically looks for a version of the requested image with the @2x modifier in its name. It if finds one, it loads that image instead. If you do not provide a high-resolution version of a given image, the image object still loads a standard-resolution image (if one exists) and scales it during drawing.

When it loads an image, a UIImage object automatically sets the size and scale properties to appropriate values based on the suffix of the image file. For standard resolution images, it sets the scale property to 1.0 and sets the size of the image to the image’s pixel dimensions. For images with the @2x suffix in the filename, it sets the scale property to 2.0 and halves the width and height values to compensate for the scale factor. These halved values correlate correctly to the point-based dimensions you need to use in the logical coordinate space to render the image.

关于iPhone4 960x640 - 对应用程序有影响吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2994829/

相关文章:

iphone - iOS:静音模式打开时无法播放声音

ios - XCode4 - 排列排序组

iphone - 替代 UIImage 的 imageWithCGImage :scale:orientation:

iphone - 方法如何判断哪个 View Controller 调用了它

iphone - 如何像 Android 一样在 iPhone 中创建后台服务?

iphone - 为什么 cache-manifest 在桌面上按预期工作时可能无法让移动 Safari 缓存站点?

iphone - NSDateCompononents 中可能存在错误吗?

iphone - 处理对多关系中核心数据对象的删除

iphone - 通过 UIManagedDocument 加速将对象插入到 Core Data 中?

iphone - 将 PSD 解析为 Xcode/IB 的工作流程