开发者

How to show an iPhone app on iPad with retina display graphics?

开发者 https://www.devze.com 2023-01-19 16:07 出处:网络
I have an iPhone app and upgraded the target for iPad in Xcode. But now开发者_开发百科, the app launches in the upper left corner of the iPad very small only. I want to scale it up to the iPad screen

I have an iPhone app and upgraded the target for iPad in Xcode. But now开发者_开发百科, the app launches in the upper left corner of the iPad very small only. I want to scale it up to the iPad screen but then use the retina display graphics.

There's a lot of code that positions the views on screen. Is there an simple way to let an iPhone app appear x2 on the iPad using the retina display graphics?


You can try checking for ‘[[UIDevice currentDevice] model]‘ and manually loading the proper graphics yourself.

In iOS 4, on the iPhone 4 or the iPod 4th gen, a graphic that ends in @2x will automatically load in place of the low res version.

As Stellian pointed out, the iPad does not just autoload retina graphics. Once you are going through the trouble, you may as well just make an iPad UI.


As far as I know, it's not possible to use the Retina Display graphics on the iPad at the moment. I remember something about a Radar a guy opened about this issue and asked the other devs to dupe it.


Yes you can, but that's all about memory. iPad has twice less than iPhone4. So do that to play, not to release.

0

精彩评论

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