tableView collectionView 点击cell不响应

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { DDLogError(@"touch %@ %@",NSStringFromClass([touch.view class]),NSStringFromCGRect(touch.view.frame)); if ([NSStringFromClass([touch.view class]) isEqualToString:@"UITableViewCellContentView"] || [NSStringFromClass([touch.view class]) isEqualToString:@"UserCollectionViewCell"]) { return NO; } return YES;}

collectionView 依然不响应

在CollectionViewCell中
self.contentView.userInteractionEnabled = NO;

你可能感兴趣的:(tableView collectionView 点击cell不响应)