5. Tabs and Tables

At the core of most iPhone applications, the view controller classes allow you to manage the visual elements that make up your application’s interface in a consistent fashion while eliminating redundant code. View controllers are the C in the MVC design pattern, providing the layer between your data model and your user interface.

In this chapter, you’ll see how to work with these classes. You’ll start by looking at the base UIViewController class from which the other view controller classes inherit and see how it provides a lot of the core functionality required by any iPhone application. Then you’ll see how you can add a tab-based interface using the

Get iPhone Application Development for iOS 4: Visual QuickStart Guide 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.