February 2014
Intermediate to advanced
560 pages
18h 58m
English
A UITableView displays a list of UITableViewCell objects. For many applications, the basic cell with its textLabel, detailTextLabel, and imageView is sufficient. However, when you need a cell with more detail or a different layout, you subclass UITableViewCell.
In this chapter, you will create a custom subclass of UITableViewCell named BNRItemCell that will display BNRItem instances more effectively. Each of these cells will show a BNRItem’s name, its value in dollars, its serial number, and a thumbnail of its image (Figure 19.1).
Figure 19.1 Homepwner with subclassed table view cells
Read now
Unlock full access