iOS 解决单击手势与UItableviewCell表格手势冲突

#pragma mark -UIGestureRecognizerDelegate

-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch

{

    if ([NSStringFromClass([touch.view class]) isEqualToString:@"UITableViewCellContentView"]) {

        return NO;

    }

    return YES;

}

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