Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I customize the accessory disclosure image in a UITableViewCell?

I would like to use a custom version of the standard disclosure accessory image in my UITableView. How can I do this? I'm hoping that sub-classing UITableViewCell is not necessary for something this basic.

like image 941
jpm Avatar asked Dec 31 '08 18:12

jpm


1 Answers

You'll need to create a custom view and assign it to the accessoryView property of the UITableViewCell object. Something like:

myCell.accessoryView = [[ UIImageView alloc ]                         initWithImage:[UIImage imageNamed:@"Something" ]]; 
like image 92
codelogic Avatar answered Sep 21 '22 01:09

codelogic