5. View Constraints 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

O'Reilly logo

5. View Constraints

The iOS 6 software development kit (SDK) has revolutionized view layout. The days of sizing masks, struts, and springs are over. If you aren’t familiar with those, don’t worry. If you are familiar with them, you’re about to learn something wonderful, fresh, and new. Apple’s layout features will make your life easier and your interfaces more consistent, regardless of device geometry and orientation. This chapter introduces code-level constraint development. You’ll discover how to create relations between on-screen objects and specify the way iOS automatically arranges your views. The outcome is a set of robust rules that adapt to screen geometry.

What Are Constraints?

Constraints are rules that allow you to describe your layout ...

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