首页 > 随笔档案 > 手势冲突UIPanGestureRecognizer 和UIPinchGestureRecognizer

手势冲突UIPanGestureRecognizer 和UIPinchGestureRecognizer

Publish:

当同时使用pan和pin手势时假如冲突,需要加入下面方法
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
    return  YES;
}

声明: 本文采用 BY-NC-SA 授权。转载请注明转自: levy