Difference between didSelectRowAtIndexPath and AccessoryButtonTappedForRowWithIndexPath

I implemented didSelectRowAtIndexPath and the Accessory ButtonTappedForRowWithIndexPath never fires. However, didSelectRowAtIndexPath always fires even when I click on an accessory. Shouldn't these two be exclusive?

+6
iphone cocoa-touch uitableview
source share
1 answer

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

+21
source share

All Articles