Updating graphics for Retina Display
Hey, so how do we update our graphics for the Retina Display??
Those who have iPhone 4s know that non-updated graphics look really bad on this thing.
It's my understanding that you have to include graphics for both screen resolutions, using an @2x at the end of the file name to designate which graphics are the 326dpi versions, but I don't have an iPhone 4 to test this on (yet).
Anyone have any insight on this? It's really important to all of Titanium devs, I think.
5 Answers
-
If you have the 4.0 SDK from Apple, and at least the Titanium 1.3.2 RC1, you can use the high resolution iPhone 4 resolution in the simulator.
When you get these two installed, be sure to select 4.0 as the SDK version in the Test & Package window.
Once the iPhone simulator launches, you can go up to the Hardware menu, go to Device and select iPhone 4. You'll then see a giant iPhone on your screen. :)
-
does this mean that we can't test this on the simulator? maybe there is a setting in xcode that would allow to test/switch high/low res in the simulator
-
would be great to get an answer on the OP's question… is the @2x convention supported in titanium?? anyone go ahead and try it? haven't had a chance yet myself.
-
Using either the iPhone 4 or iPhone 3 simulators does not 'fix' the problem. The issue is that UIImage is not using the @2x versions of the image, so iOS4 will not pick them up.
-
I have installed the 1.3.2 SDK and selected it for the project,
I have an image called 'logo_home_screen.png', and a higher resolution one called 'logo_home_screen@2x.png' in the same directory,
and I am using the iPhone 4 in the simulator.But, I'm still seeing the original 'logo_home_screen.png' image displayed… is there something else I'm missing?