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
2010-01-17 20:49:33
OK. I'll look for a tutorial on doing that.Thanks.
Adam
2010-01-17 21:08:52
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
2010-01-17 21:13:03
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
2010-01-17 22:32:22
A:
Yes.
You can have 2 images per cell, without customizing.
- imageView
- accessoryView
You can also add images to the contentView.
David Sowsy
2010-01-18 00:24:18