O'Reilly logo

Mastering iOS 10 Programming by Donny Wals

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

Creating adaptive layouts with Auto Layout

At the beginning of the chapter, you learned what adaptive layouts are and why they are important. You learned about Size Classes and trait collection briefly. In this section, we'll take a deep dive into these topics by implementing an adaptive contact detail page. You'll learn the best practices to implement a layout that will be tweaked for different Size Classes. Finally, you'll learn how to make use of Auto Layout and Size Classes in code because, sometimes, you need to change a layout at runtime. The layout we'll build is presented in the following image:

Creating adaptive layouts with Auto Layout

The contact detail page will contain some ...

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