协议:UIGestureRecognizerDelegate
#pragma --mark--UIGestureRecognizerDelegate
- (BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer shouldReceiveTouch:(UITouch*)touch {
//如果是 手势与cell冲突 (某一类子视图)
if([NSStringFromClass([touch.viewclass] )isEqualToString:@"UITableViewCellContentView"]) {
returnNO;
}
//如果是 手势与 某一视图
if([touch.viewisDescendantOfView:不需要响应的视图]) {
returnNO;
}
returnYES;
}