Domanda

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.

È stato utile?

Soluzione

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

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top