出于某些动画目的,我将表格的delaysContentTouches
设置为false
。单元格都有一个按钮。拖动表格效果很好,除非在按钮上拖动。
即使触摸按钮上方,我仍如何拖动单元格(上下)?
我尝试使用单元格的手势委托:
gestureRecognizerShouldBegin(_:)
gestureRecognizer(shouldRequireFailureOf:)
gestureRecognizer(shouldRecognizeSimultaneouslyWith:)
gestureRecognizer(shouldReceive:)
gestureRecognizer(shouldReceive:)
和表格的方法:
gestureRecognizerShouldBegin(_:)
不幸的是,当从按钮开始触摸时,这些都不使我能够拖动单元格。我该怎么做才能做到这一点?