views:

93

answers:

0

I would like to replace the detail disclosure indicator with a custom image, however i still need the

-(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath;

method to be called when i tap on the button, any ideas?

I know you can set the accessory view, but if i put a button in it, I can add a selector to get called but i don't get the cell that was clicked on (via NSIndexPath). I could derive from UIView and add a row property or set the tag on the button to be the row, so i would know which has bee clicked, but is there an easier way?