简体   繁体   English

视网膜显示兼容性

[英]Retina display compatibility

For our iPhone app, we are using 50 x 50 user image (from facebook). 对于我们的iPhone应用程序,我们使用50 x 50用户图像(来自facebook)。 It works fine for iPhone 3G and 3GS but not for iPhone 4 due to its high resolution display. 由于其高分辨率显示,因此它适用于iPhone 3G和3GS,但不适用于iPhone 4。 For iPhone 4 we tried to send 100 x 100 (variable height) image but it is not working for obvious reasons. 对于iPhone 4,我们尝试发送100 x 100(可变高度)图像,但是由于明显的原因它无法正常工作。 Any thought? 任何想法?

You don't need to do anything different for the Retina Display. 无需为视网膜显示器做任何其他更改。 Using exactly the same image as you have on the older iPhone will work exactly the same. 使用与旧版iPhone完全相同的图像将完全相同。

If you have a higher resolution image that you'd like to display instead, then if you save the file with a @2x suffix then, if the device has a Retina display, it will pick that instead. 如果您要显示更高分辨率的图像,那么如果使用后缀@2x保存文件,则如果设备具有Retina显示屏,它将选择该图像。 In most cases it should not require any extra code. 在大多数情况下,它不需要任何额外的代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM