Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Distinguishing between didSelectRowAtIndexPath and accessoryButtonTappedForRowWithIndexPath

I've implemented didSelectRowAtIndexPath and accessoryButtonTappedForRowWithIndexPath never seems to fire. However, didSelectRowAtIndexPath always fires, even when I click the accessory. Shouldn't these two be exclusive?

like image 705
4thSpace Avatar asked Dec 21 '09 23:12

4thSpace


1 Answers

-[UITableViewDelegate accessoryButtonTappedForRowWithIndexPath:] is only called when the accessoryType of the cell is set to UITableViewCellAccessoryDetailDisclosureButton.

like image 144
Joost Avatar answered Sep 23 '22 12:09

Joost