Graphics Programs Reference
In-Depth Information
15
Subclassing UITableViewCell
A UITableView displays a list of UITableViewCell s. For many applications, the ba-
sic cell with its textLabel , detailTextLabel , and imageView is sufficient.
However, when you need a cell with more detail or a different layout, you subclass UIT-
ableViewCell .
In this chapter, you will create a custom subclass of UITableViewCell named Homep-
wnerItemCell that will display BNRItem instances more eloquently. Each of these
cells will show a BNRItem 's name, its value in dollars, its serial number, and a thumbnail
of its image ( Figure 15.1 ).
Figure 15.1 Homepwner with subclassed UITableViewCells
 
Search WWH ::




Custom Search