Question

I have developed an iOS app using Xcode 3.2 and I would like to release a new version of the app that supports the larger iPhone 5 screen.

I have tried the following in the Application Delegate:

[window setFrame:[[UIScreen mainScreen] bounds]];
[window addSubview:viewController.view];
[window makeKeyAndVisible];

CGRect screenBounds = [[UIScreen mainScreen] bounds];

NSLog(@"%@",[NSValue valueWithCGRect:screenBounds]);
// NSRect: {{0, 0}, {320, 480}}

As you can see the height is set to 480pt. How can I add support for the iPhone 5's taller screen?

Thanks,

Was it helpful?

Solution

Add the new standard Default-568h@2x.png image to your main bundle and run your app on an iPhone 5. If it doesn't appear at the full resolution you may need need to upgrade your version of Xcode and compile the app against a newer iOS SDK. Xcode 3.2 has been deprecated for some time now.

Edit It appears that simply adding the Default-568h@2x launch image on an earlier SDK works as the OP mentioned. This is pretty handy to know.

As a side note, there is another answer on the new iPhone 5 launch image name

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top