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 9.8). The contentView is the superview for the content of the cell. The cell may also have an accessory view.

Figure 9.8  UITableViewCell layout

UITableViewCell layout

The accessory view shows an action-oriented icon, such as a checkmark, a disclosure icon, or an information button. These icons are accessed through predefined constants for the appearance of the accessory view. The default is UITableViewCellAccessoryType.None ...

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