Chapter 8

Improving the Look of Cells

Using UITableView's built-in standard cell types is a great way to get up and running quickly. But pretty soon you're going to run up against the limitations of the standard look and feel and want to move beyond the typical layouts.

Creating and using custom cells isn't difficult, and builds on all the topics that we've covered so far. There are three main ways of customizing cells:

  • Adding subviews to the cell's contentView
  • Creating a custom cell in a NIB by using Interface Builder
  • Creating a custom subclass of UITableViewCell

The three methods complement each other. In this chapter, you'll look at the first two. Then in Chapter 9, you'll take a detailed look at custom subclasses.

The two approaches in ...

Get Pro iOS Table Views for iPhone, iPad, and iPod Touch 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.