我已经实现了 didSelectRowAtIndexPath 和accessoryButtonTappedForRowWithIndexPath 似乎永远不会触发。但是,didSelectRowAtIndexPath 始终会触发,即使我单击附件也是如此。这两个不应该是排他的吗?
最佳答案
-[UITableViewDelegateaccessoryButtonTappedForRowWithIndexPath:]
仅在单元格的accessoryType
设置为UITableViewCellAccessoryDetailDisclosureButton
时调用。
关于iphone - 区分 didSelectRowAtIndexPath 和accessoryButtonTappedForRowWithIndexPath,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1943183/