O'Reilly logo

iOS Auto Layout Demystified, Second Edition by Erica Sadun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6. Building with Auto Layout

Designing for Auto Layout changes the way you build interfaces. It’s a descriptive system that steps away from exact metrics like frames and centers. You focus on expressing relationships between views, describing how items follow one another onscreen. You uncover the natural relationships in your design and detail them through constraint-based rules.

In return, your interfaces gain flexibility. Auto Layout articulates many more conditions than “allow this view to stretch” and “pin this edge.” Its design vocabulary leapfrogs past Autosizing’s springs and struts to provide a more nimble and serious visual construction language.

This chapter introduces the expressiveness of Auto Layout design, spotlighting its underlying ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required