第十五篇、OC_同一个View实现两个手势响应

#pragma mark-UIGestureRecognizerDelegate Methods
// 只要实现这个方法,就可以实现两个手势同时响应
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:

(UIGestureRecognizer *)otherGestureRecognizer {
    
    return YES;
}

 

posted on 2016-11-28 19:13  久冬不雨  阅读(372)  评论(0编辑  收藏  举报