O'Reilly logo

Learning iOS UI Development by Yari D'areglia

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

Chapter 5. Adaptive User Interfaces

Before iOS 8, if we wanted to define how to display content, we had to perform checks on the screen size of our device on the current orientation or on the device model. These techniques have been good friends of ours in the past, but with an ever-growing number of screens sizes to take into account, this information is no longer enough. We need a more dynamic way to refer to screen sizes and formats.

In this chapter, you will learn how Apple has improved the way you can conceive and build adaptive user interfaces through some brand new and welcome additions to Cocoa Touch, such as size classes, trait environments, and UIStackViews.

UI definition with size classes

When working with iOS applications, you used to ...

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