views:

201

answers:

3

Hi there,

I've been reading as much as I can about the new iPhone 4 high resolution (640 x 960), but am still confused.

Is it basically just a bigger screen like the iPad? If so, does it automatically translate touches, ie touch in the middle of the screen becomes (320, 480), or do I have to check the device and translate the touches myself?

Or, is it essentially size 320x480, but images can be twice as big and look better?

Sorry, I'm just really confused by what the new high resolution means for us :(

+2  A: 

Just keep doing things the way you were doing them. I've found that my apps work the same. The only things that got a bit weird looking were custom imported images. Apple has a guide on how to handle images on the newer resolution though.

Here, take a look at this official article from Apple. Supporting High-Resolution Screens

Raphael Caixeta
Hey, thanks for responding. What do you mean about 'custom imported images'?
Applehund
When you import an image as a project resource. Like a PNG image.
Raphael Caixeta
+2  A: 

The iPhone 4 has the same/similar physical display size, but a much higher resolution. This means that you get much higher quality image and video viewing on the same size screen. The hardware/HAL should automatically translate the touches.

DWSR
Aha, good to hear. Thanks
Applehund
+6  A: 

Rather than using a pixel coordinate system, iOS now uses a point (pt) coordinate system. This means that when developing for the iPhone, you are still developing on a screen that is 320 pts by 480 pts. Right now, that just means that on the iPhone 4, 1 pt is equal to 2 px. However, Apple has made it clear that they are reserving the ability to change the pt to px conversion ratio on future devices.

Unless you are doing complex drawing, the only thing you will need to worry about is providing higher resolution versions of your images. Essentially, by doubling the resolution of your images, your application will look extremely crisp and sharp on the iPhone 4.

rickharrison