16Subclassing UITableViewCell
A UITableView displays a list of UITableViewCells. 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 to display Possession instances more eloquently. Each of these cells will show a Possession’s name, its value in dollars, and a thumbnail of its image (Figure 16.1).
Figure 16.1 Homepwner with subclassed UITableViewCells

Open Homepwner.xcodeproj. Create a new NSObject subclass and name it HomepwnerItemCell ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access