Split View Controllers

Meant for use on tablet applications, the UISplitViewController class offers a way to encapsulate a persistent set of data (typically a table) and associate that data with a detail presentation. You can see split views in action in the iPad’s Mail application. When used in landscape orientation, a list of messages appears on the left; individual message content appears on the right. The detail view (the message content in Mail) on the right is subordinate to the master view (Mail’s message list) on the left. Tapping a message updates the right-side view with its contents.

In portrait orientation, the master view is normally hidden. It is accessed via a popover, which is reached by tapping the left button of the split view’s ...

Get The Core iOS Developer’s Cookbook, Fifth 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.