iOS 10 以后 Uitableview 与 gestureRecognizer手势冲突

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

{

    DLog(@"%@",touch.view.superview);

    //[NSStringFromClass([touch.view class]) isEqualToString:@"UITableViewCellContentView"]  都直接返回 view

   

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

        return NO;

    }

    return  YES;

}

你可能感兴趣的:(IOS)