UITableViewCells

Each row of a table view is a view. These views are instances of UITableViewCell. In this section, you will create the instances of UITableViewCell to fill the table view.

A cell itself has one subview – its contentView (Figure 10.8). The contentView is the superview for the content of the cell. The cell may also have an accessory view.

Figure 10.8  UITableViewCell layout

Representation of UITableViewCell Layout with an example, with its parts labeled.

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.