iPhone Reference Library Apple Developer Connection spyglass button

Introduction

View controllers are a set of classes in UIKit that implement common user interface design patterns for presenting numerous application views to the user on iPhone OS. By using view controllers, you eliminate redundant code in your applications and provide a consistent and familiar user interface. View controllers provide support for tab bars, navigation bars, modal views, and table views. View controllers also simplify autorotating your user interface when the orientation changes.

Note: This document does not reflect the changes to view controller management that were introduced in iPhone OS 3.0.

Who Should Read This Document

You should read this document if you are implementing an iPhone OS application. Most productivity applications that contain a lot of user data or records benefit from using view controllers to organize and present content on small hand-held devices. Even a single view graphics application benefits from using view controllers for autorotation.

Organization of This Document

This article provides an introduction to view controllers and explains why you should use them:

These articles describe the user interface and object-oriented designs implemented by view controllers:

These articles cover common programming tasks—they contain step-by-step instructions and sample code:

See Also

If you are new to development for iPhone OS, read these documents first:

If you are using Interface Builder to create view controllers, read “iPhone OS Interface Objects” in Interface Builder User Guide.

If you want to use table views for hierarchical data, read Table View Programming Guide for iPhone OS after this guide.



Last updated: 2009-05-28

Did this document help you? Yes It's good, but... Not helpful...