I wanna update my app, that is created using iOS5 SDK, to fit iPhone5's 4-inch screen. I simulate it with iPhone5 simulator. The following code tells us that the screen height is still 480.00 but not 548. What should I do to let my app to be taller but without the black gap in the bottom of the iPhone5's 4-inch screen? Any help is appreciated:)
- (void)viewDidLoad
{
[super viewDidLoad];
float screenHeight = [UIScreen mainScreen].bounds.size.height;
NSLog(@"screenHeight :%f",screenHeight);
}
log:
2012-09-20 14:47:36.554 FF[61898:c07] screenHeight :480.000000
This is poorly documented by Apple, but it seems like you have to provide a 4-inch launch image to let iOS know that you are built to take advantage of the tall screen. Only then will you get to use the full screen.