ios retina

转自:http://www.cnblogs.com/GnagWang/archive/2012/03/14/2395876.html

the new ipad要来了,就像iphone4来的时候一样,retina再次被人们提起,作为开发者怎样适配retina显示屏呢?
note:
I just create test app and test.
So for devices with out retina:
ImageName.png – For iPhone/iPod
ImageName~ipad.png — For iPad
For devices with retina display:
ImageName@2x~ipad.png — For iPad
ImageName@2x.png – For iPhone/iPod
And you can still use @2x if you iPhone high resolution image and iPad high resolution image have the same size.
To load image just use [UIImage imageNamed:@”image.png”];

转载请注明: 转自Rainbird的个人博客
   本文链接: ios retina


相关博文

    分享到:

About rainbird

IOS攻城狮
This entry was posted in IOS开发, object-c, xCode, 转载 and tagged , , , , , . Bookmark the permalink.

发表评论