O'Reilly logo

iOS 8 SDK Development, 2nd Edition by Janie Clayton, Chris Adamson

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

Size Classes and the iPhone 6

So it’s great that the split view gives us one behavior for the iPad and another for the iPhone.

Except, well, that new iPhone 6 is really big. Maybe not iPad big, but it at least makes you wonder whether it’s really appropriate to lump all iPhones together. After all, iOS 8 runs on everything from the 4s (with its 320x480, 3.5-inch screen) to the iPhone 6 Plus (414x736, 5.5-inch screen). Even within the iPhone range, there may be times we want to go to a side-by-side mode with our split view.

To do so, we need to understand how iOS 8 represents sizes.

Size Classes

In iOS 8, screens, view controllers, and views all have a collection of sizing information called a trait collection. These traits are collected by the ...

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