문제

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.

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top