Dvole
Dvole

Reputation: 5795

What is the best way to do interface to support iPhone 4, 5, 6, 6+?

So I've been doing my interfaces with setting frames based on device. So I have two options - iPhone 4 and iPhone 5, and sometimes iPad.

So I had to position everything twice or three times manually and forget about it.

But now I need to support two new devices, with different resolutions - what should I do?

Do I use Autolayout and figure out some constants that should be same on all devices? But that can't feel good and look great on all devices.

What do you think?

Upvotes: 0

Views: 164

Answers (2)

Loic Verrall
Loic Verrall

Reputation: 1015

Apple recently announced something which they call Adaptive UI - an iOS 8 feature - designed to solve the problem I think you're trying to describe. That might be worth looking into.

Adaptive UI is essentially constraint-based (as you mentioned in your question).

A good explanation can be found here: http://www.imore.com/adaptive-ui-ios-8-explained

Hope this helped and good luck!

Loic

Upvotes: 2

Faisal Memon
Faisal Memon

Reputation: 3454

For simple, relatively static content, xib files and auto layout do the job. If you want to have top-notch user experience, dynamic ui, etc. the best option is to construct the user interface programmatically once you've prototyped your ideas in a xib file. When I first went down that route, I was dreading it but it is surprisingly easy all things considered.

Upvotes: 0

Related Questions