tags:

views:

123

answers:

2

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?

+3  A: 

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

In iOS 4, on the iPhone 4 at least, 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. Perhaps it will in iOS 4.2, but I have not tried.

Moshe
Yeah, you have to do it manually, like Moshe suggests.
Stelian Iancu
You'll also have do double the size of all your views too. This is far from "simple".
Robot K
@robot k - on iPhone 4 or iPad? On iphone 4, the phone handles native controls by itself.
Moshe
@Moshe - You're correct. I meant on the iPad. Simply loading the double sized images won't actually double the size of the app on the iPad.
Robot K
+1  A: 

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.

Stelian Iancu