简体   繁体   中英

iOS 8 auto layout? Do I need it?

Is there a way to have an app work on all tall iPhone devices (portrait mode) without using Auto Layout?

Can I just design for say iPhone 5 and have iPhone 6 and iPhone 6 plus stretch to fill.

Auto layout seems overkill when I don't need to design for landscape or iPad.

Any ideas?

Auto layout seems overkill when I don't need to design for landscape or iPad.

That's definitely not true. You could argue it was true before the launch of the iPhone 6, but even with only iPhones 4 and 5 it helps to account for different situations.

Can I just design for say iPhone 5 and have iPhone 6 and iPhone 6 plus stretch to fill.

Stretch to fill is something that you can easily achieve with AutoLayout.

I know it seems a bit tough at first, but it's actually based on really simple mechanisms and behaves very logically. It's definetely worth giving it a try, you'll get much more out of it than you might expect right not.

Although Auto layout is optional, but to me it is a recommended feature.

Once your design become complex, you would have to write a lot of code to support different screen sizes. This can be avoided by using auto-layouts.

Yes you can in Show the size inspector-> Autoresizing. But you have to do it for each subview for each .xib file or in storyboard

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM