Skip to Main Content
Professional iPhone® and iPad™ Application Development
book

Professional iPhone® and iPad™ Application Development

by Gene Backlin
November 2010
Intermediate to advanced content levelIntermediate to advanced
600 pages
14h 21m
English
Wrox
Content preview from Professional iPhone® and iPad™ Application Development

Chapter 4. The Split View

WHAT'S IN THIS CHAPTER?

  • How to create a Split View-based application

  • How to link data from the RootViewController with the DetailViewController

  • How to handle orientation changes

The split view is a unique combination of views in a master-detail relationship that gives the user a different visual experience depending on the orientation of the iPad. The master is the RootViewController and the detail is the DetailViewController. In landscape mode, both the master and detail views are visible. The master view is a list of options on the left of the screen. When an option is selected, the result occurs in the detail view. In portrait mode, however, the detail takes up the entire view and the master view is available as a popup. The master is accessible through a button on the toolbar on the detail view. Tapping the button reveals a popup controller with the contents of the master view, so selections can still be made.

In this chapter you build an application that demonstrates this master-detail relationship, and add gestures that emulate the flipping of a page.

THE UISPLITVIEWCONTROLLER CLASS

The UISplitViewController class manages two ViewController classes in a master-detail relationship. By default, the master view is a table view controller, but the detail view can be determined by the developer.

The UISplitViewController does not provide any interface by itself; rather, it manages the RootViewController and DetailViewController — especially with respect to the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional Visual Studio® 2010

Professional Visual Studio® 2010

Nick Randolph, David Gardner, Michael Minutillo, Chris Anderson
Navigating the Metaverse

Navigating the Metaverse

Cathy Hackl, Dirk Lueth, Tommaso Di Bartolo
Navigating the Metaverse

Navigating the Metaverse

Cathy Hackl, Dirk Lueth, Tommaso Di Bartolo, John Arkontaky, Yat Siu

Publisher Resources

ISBN: 9780470878194Purchase book