Apple website (https://www.apple.com/iphone/compare/) displays screen resolutions for new iPhones as:
1920-by-1080-pixel resolution at 401 ppi //iPhone 6 Plus
1334-by-750-pixel resolution at 326 ppi //iPhone 6
1136-by-640-pixel resolution at 326 ppi //iPhone 5, 5s
960-by-640-pixel resolution at 326 ppi //iPhone 4s
But if you print the screen sizes of corresponding iOS Simulators using [UIScreen mainScreen]
the result is different for iPhone 6 Plus only:
1242.000000 x 2208.000000 //iPhone 6 Plus
Is it something to do with pixels per inch (ppi)?
[Edit:] Thanks! I got the answer my first question. Please answer my second question below.
One more thing. When I ran my existing app (developed for iPhone 5, 5s) on iPhone 6 Plus & iPhone 6 Simulators, it displays the screen resolution of iPhone 5 i.e. 640.000000 x 1136.000000
. But if I create a new app and print the resolutions it displays correct ones as mentioned above. What am i missing here?