标签: ios cocoa-touch gesture
我需要在我的应用中一次只识别一个手势。 有没有办法做到这一点?
答案 0 :(得分:2)
试试这个
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { return NO; }