我有一张包含静态单元格的表格。一个单元格作为披露指标(以及 TextView )。披露指示器被设置为触发 segue 作为辅助操作。但是 segue 不会触发。而且它确实曾经使用过,这个 segue 是我应用程序的早期添加,并且已经运行了很长一段时间。
我已经尝试在 tableView(accessoryButtonTapped)
方法中放置一个断点,但它没有被调用。 (我还在各种 segue 方法中设置了断点,但当然附属的水龙头无论如何都会先出现)
关于如何解决这个问题有什么想法吗?
最佳答案
根据documentation for accessoryType ,唯一跟踪触摸的附件类型是 detailDisclosureButton:
If the cell is enabled and the accessory type is detailDisclosureButton, the accessory view tracks touches and, when tapped, sends the data-source object a tableView(_:accessoryButtonTappedForRowWith:) message.
关于ios - 附属水龙头无法识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48492490/