views:

81

answers:

3

Can you place more than one image in a UITableViewCell?

A: 

The standard UITableViewCell only supports one image (via the imageView.image property).

However, you can make a custom subclass of UITableViewCell and add the desired number of image views.

gerry3
OK. I'll look for a tutorial on doing that.Thanks.
Adam
It is discussed in *iPhone SDK Development* by Bill Dudney and Chris Adamson available from the Pragmatic Bookshelf: http://www.pragprog.com/titles/amiphd/iphone-sdk-development
gerry3
A: 

The simplest way would be to set a custom view (with any number of images) as the cell's contentView.

You could create a custom view and set it as the cell's contentView property. Apple´s Table View Programming Guide for iPhone OS explains in good detail possible strategies for customization of an UITableViewCell.

Marco Mustapic
A: 

Yes.

You can have 2 images per cell, without customizing.

  1. imageView
  2. accessoryView

You can also add images to the contentView.

David Sowsy
I need 4, but that's good to know. Thanks.
Adam