无论如何在同一视图中区分平移和滑动手势?通过使用委托,我有 2 个手势同时在同一个视图上工作
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
return YES;
}
我确实设置了平移手势的属性 minimumNumberOfTouches = 1。问题是当我平移时,触发了滑动手势。在平移过程中如何使滑动手势停止?