手势识别UIGestureRecognizer

同时识别多个手势,需要设置手势代理

1. <UIGestureRecognizerDelegate>

2.- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {

    return YES;

}

 

posted @ 2017-02-14 10:34  柳仙慧子  阅读(210)  评论(0编辑  收藏  举报