Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replace the default checkmark for UITableView with a custom image

I'd like to replace the default checkmark image that is shown when a UITableViewCell's accessory is set to: UITableViewCellAccessoryCheckmark.

So I'd still like to write:

[cell setAccessoryType:UITableViewCellAccessoryCheckmark];

But I'd like my own image to be shown rather than the default.

Any help is much appreciated.

like image 364
faraquet99 Avatar asked Apr 18 '12 12:04

faraquet99


1 Answers

myUITableViewCell.accessoryView = myImageView;

Then put your image in the UIImageView.

see

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/occ/cl/UITableViewCell

like image 73
clowwindy Avatar answered Nov 15 '22 06:11

clowwindy