实现以下手势代理方法
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
CGPoint point = [gestureRecognizer locationInView:父视图];//获取手势点击坐标
if(CGRectContainsPoint(子视图.frame, point)) {
//判断点是否在子视图范围内
return NO;//父视图点击事件不响应
}
return YES;//父视图点击事件响应
}