去掉以下代码:
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
if(gestureRecognizer.state != 0) {
return YES;
}else {
return NO;
}
}
这个方法会识别多个相同类型的手势