views:

23

answers:

2

What is the best way to place an image as the background of an UITableCell? I was thinking of using the cell.contentView property, but it won't compile.

Is there a preferred method of doing this? And maybe an example?

+1  A: 

make sure you are using UIImageView and then having its image property set to the UIImage you want. also, contentView is not the property you want, you want the UITableViewCells backgroundView

Jesse Naugher
A: 

I generally use -[UIColor colorWithPatternImage: for this purpose.

jer