Question

Possible Duplicate:
How to develop or migrate apps for iPhone 5 screen resolution?

how iPhone 5 apps will work on older iPhones?

For example, if I create an app to take advantage of the 4 inch screen will I also have to create another version of my app to support the older 3.5 inch screen?

PS

Im doing it programmatically.

Was it helpful?

Solution

If you enable Autolayout in the interface builder, it will support both screen sizes for the iPhone. If doing it programmatically, there's this question that asked something similar. Implementing auto layout for views generated programmatically

OTHER TIPS

Apple added something called AutoLayout. They added this to iOS (and OSX) SDKs to counter the screen resolution differences by allowing you to set constraints to your view elements.

Here's the documentation

To use it programmatically, you can define constraints using NSLayoutConstraint

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