Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone UITableView - action on accessory click

I am trying to link the click of an accessory button in a UITableView to a method in a particular class. The accessory is on multiple cells, created in code, and thus I can't just do a simple link in interface builder like I am used to.

How do I link an accessory arrow (from the end of a cell in a UITableView) to a method?

like image 636
oberbaum Avatar asked Jan 25 '10 17:01

oberbaum


1 Answers

Check out the tableView:accessoryButtonTappedForRowWithIndexPath: method on the UITableViewDelegate.

like image 158
Greg Martin Avatar answered Nov 19 '22 06:11

Greg Martin