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 ...

Get iOS 8 SDK Development, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.