Possible Duplicate:
How iPhone 5 + iOS6 will decide if an app must be run in letterbox mode
I’m using:
CGRect screenBounds = [[UIScreen mainScreen] bounds];
to get screen size.
The returned value is {0,0, 320, 480} for iPhone 5 on iOS simulator. Because of this my OpenGL viewport is smaller than the screen and I have 2 black stripes. I can’t try at this moment the code on device.
Is there some workaround to get correct screen size?
I must mention that I’m using same project for several years(since iPhone 3G).
You need to add Default-568h@2x.png in project.