Why screen size for iPhone simulator is still 480x320 pixels?

Hi,


I just upgraded my xcode to 4.2.1 so I have iOS SDK 5.0 now. However, when I create a project, the screen size in simulator for iPhone is 480x320 pixels. I was told the screen size for iPhone/iPad is now 960x640 pixels. Why in simulator it is still old size? What should I do to get the correct size or I am wrong and the actual device is still 480x320 pixels? Thanks.


Regards,

Taizhi

Posted on Feb 1, 2012 7:08 PM

Reply
3 replies

Feb 1, 2012 7:13 PM in response to Taizhi

What you were told is a technical reference to the resolution of a retina display.


The actual size of an iPhone, regardless of display, is 320 X 480.


The simulator should have a menu to imitate retina if you need it.


Best advice, tho, is to test on a device as the simulator is just your computer.

Feb 1, 2012 10:14 PM in response to Taizhi

hi,


you change between "iPhone" and "iPhone retina" to simulate both physical resolutions.


For the project it doesn't matter because the logical resolution is still 320 x 460 "Points". The OS does most of the work for you.


I suggest reading: this: http://developer.apple.com/library/ios/#documentation/2DDrawing/Conceptual/Drawi ngPrintingiOS/SupportingHiResScreens/SupportingHiResScreens.html#//apple_ref/doc /uid/TP40010156-CH15


Dirk

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why screen size for iPhone simulator is still 480x320 pixels?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.