这个代理能解决手势冲突不执行的情况
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
returnTRUE;
}
还可以设置手势优先级来判断当前改执行那个手势
[self.panGestureRecognizer requireGestureRecognizerToFail:gestureRecognizer];