Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dare to Be Square: Building Adaptive iOS Interf...

Jay Thrash
October 06, 2015

Dare to Be Square: Building Adaptive iOS Interfaces

Originally presented at 360iDev min in Greenville, SC on October 6, 2015.

With the plethora of iOS devices on the market, building interfaces which can adapt to all their various display sizes, orientations, and multitasking layouts may feel like an insurmountable task. Thankfully, the wizards behind UIKit have been making steady improvements over the past two years to provide us with the necessary tools and APIs to bring this goal within our reach.

In this presentation, we’ll find out how to take advantage of the latest Xcode and view controller advancements to effectively use auto layout, size classes, and trait collections to build great adaptive user interfaces.

Jay Thrash

October 06, 2015
Tweet

More Decks by Jay Thrash

Other Decks in Technology

Transcript

  1. Compact Any Regular “..relative amount of display space for the

    height and for the width.” CLASSES S I Z E
  2. Programmatic UITraitCollection *traits = self.traitCollection; traits.horizontalSizeClass traits.verticalSizeClass // UIUserInterfaceSizeClassCompact or

    UIUserInterfaceSizeClassRegular traits.displayScale // 1.0 or 2.0 traits.userInterfaceIdiom // UIUserInterfaceIdiomPhone or UIUserInterfaceIdiomPad UITraitCollection
  3. Extra Credit Some things we didn’t cover • iPad vs.

    iPhone • Optional UI views • Customized layout transitions