开发者

Retina display compatibility

开发者 https://www.devze.com 2023-01-16 15:28 出处:网络
For our iPhone app, we are using 50 x 50 user image (from facebook). It works fine for iPhone 3G开发者_JAVA技巧 and 3GS but not for iPhone 4 due to its high resolution display. For iPhone 4 we tried t

For our iPhone app, we are using 50 x 50 user image (from facebook). It works fine for iPhone 3G开发者_JAVA技巧 and 3GS but not for iPhone 4 due to its high resolution display. For iPhone 4 we tried to send 100 x 100 (variable height) image but it is not working for obvious reasons. 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.

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. In most cases it should not require any extra code.

0

精彩评论

暂无评论...
验证码 换一张
取 消