O'Reilly logo

iPhone Programming: The Big Nerd Ranch Guide by Joe Conway, Aaron Hillegass

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

16. Subclassing UITableViewCell

UITableViews display 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 are going to create a subclass of UITableViewCell to display Possession instances more eloquently. Each one of these cells will show a Possession’s name, its value in dollars, and a thumbnail of its image as shown in Figure 16.1.

Figure 16.1. Homepwner with subclassed UITableViewCells

image

Open Homepwner.xcodeproj. Select the New File... menu item ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required