views:

529

answers:

1

hi all.

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?

Regards

+1  A: 

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

Greg Martin
perfect thanks.
norskben