Adam
Adam

Reputation: 255

Multiple Cell Images

Can you place more than one image in a UITableViewCell?

Upvotes: 0

Views: 447

Answers (3)

David Sowsy
David Sowsy

Reputation: 1680

Yes.

You can have 2 images per cell, without customizing.

  1. imageView
  2. accessoryView

You can also add images to the contentView.

Upvotes: 1

Marco Mustapic
Marco Mustapic

Reputation: 3859

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.

Upvotes: 0

gerry3
gerry3

Reputation: 21460

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.

Upvotes: 0

Related Questions