tableview手势冲突

#pragma mark - UIGestureRecognizerDelegate-(BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer shouldReceiveTouch:(UITouch*)touch {if([NSStringFromClass([touch.viewclass]) isEqualToString:@"UITableViewCellContentView"]) {//判断如果点击的是tableView的cell,就把手势给关闭了returnNO; }returnYES;}

你可能感兴趣的:(tableview手势冲突)