iPhone 5 [[UIScreen mainScreen] bounds].size.height

johnbakers picture johnbakers · Sep 13, 2012 · Viewed 15.5k times · Source

Possible Duplicate:
How to develop or migrate apps for iPhone 5 screen resolution?
How to deal with iPhone 5 screen size?
What to check in order to support the iPhone 5's longer screen?

With the new screen size on iPhone 5, anyone know or guess what [[UIScreen mainScreen] bounds].size.height will return in an app running on iPhone 5? On all other iPhones, including Retina, it returns 480 - I assume it will now return 568 ?

Or, will it run in the "centered, letterboxed" mode unless some other configuration is made in the app to "allow" the full iPhone 5 resolution?

Answer

n_b picture n_b · Sep 13, 2012

Yes, the height is 568. If you want to remove "letterboxing", please see this post: iPhone 5 letterboxing / screen resize