Skip to Main Content
Pro iOS Table Views for iPhone, iPad, and iPod Touch
book

Pro iOS Table Views for iPhone, iPad, and iPod Touch

by Tim Duckett
March 2012
Beginner content levelBeginner
338 pages
7h 53m
English
Apress
Content preview from Pro iOS Table Views for iPhone, iPad, and iPod Touch

Chapter 9

Creating Custom Cells with Subclasses

In Chapter 8, you looked at two of the three main ways of creating and configuring custom UITableViewCells:

  • Adding subviews to the cell's built-in contentView
  • Creating a custom cell from scratch and instantiating it from a nib file.

The third approach – which provides the greatest flexibility, albeit at the cost of slightly more complexity – is to create a custom subclass of UITableViewCell.

The main reasons for using this approach is that you need multiple types of cell in the same table, or you want a level of control over the contents that is awkward to achieve by adding subviews.

In this chapter, we will look at the different ways of creating custom cells with UITableViewCell subclasses. ...

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.
Start your free trial

You might also like

iPhone and iPad App 24-Hour Trainer

iPhone and iPad App 24-Hour Trainer

Abhishek Mishra, Gene Backlin
My Android™ Tablet

My Android™ Tablet

Craig James Johnston

Publisher Resources

ISBN: 9781430233480Purchase book