ios - 附属水龙头无法识别

标签 ios swift uitableview

我有一张包含静态单元格的表格。一个单元格作为披露指标(以及 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/

相关文章:

ios - 展开/最小化 UITableView 自定义单元格

ios - Swift:传递 C 函数 (SCNetworkReachabilityCallBack)

ios - 如何在 UITable 中实现 Instagram 评论的效果?

iOS 7 TableView didSelectRowAtIndexPath

ios - 在 Swift 中下载 NSURLSession 期间未调用 URLSession 委托(delegate)

iOS:发送缓冲区中的套接字连接错误

ios - 如何从 sqlite 查询中的 NSString 中删除 '

ios - UIStackView - 三个排列的具有相对宽度的 subview

ios - 解析SDK和Swift 1.2 : Can´t subclass PFUser

ios - 如何用 UICollectionView 异步配置 UITableViewCell?