区分didSelectRowAtIndexPath和accessoryButtonTappedForRowWithIndexPath

4th*_*ace 6 iphone cocoa-touch uitableview

我已经实现了didSelectRowAtIndexPath和accessoryButtonTappedForRowWithIndexPath似乎永远不会触发.但是,即使单击附件,didSelectRowAtIndexPath也会一直触发.这两个不应该是排他性的吗?

Joo*_*ost 21

-[UITableViewDelegate accessoryButtonTappedForRowWithIndexPath:]accessoryType在单元格设置为时调用UITableViewCellAccessoryDetailDisclosureButton.

  • 你的一行解决了很多问题 (2认同)