10 UITableView and UITableViewController

Many iOS applications show the user a list of items and allow the user to select, delete, or reorder items on the list. Whether an application displays a list of people in the user’s address book or a list of best-selling items on the App Store, it is a UITableView doing the work.

A UITableView displays a single column of data with a variable number of rows. Figure 10.1 shows some examples of UITableView.

Figure 10.1  Examples of UITableView

Collage of two screenshots from an iPhone, the Contacts app and Photos and Camera Settings showing the UI Table View outlook.

Get iOS Programming: The Big Nerd Ranch Guide, 6th 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.