美文网首页
tableViewCell上collectionView空白部分

tableViewCell上collectionView空白部分

作者: Luke_Hu | 来源:发表于2017-06-28 09:54 被阅读0次

使用响应链,让事件传递到tableview 的cell didselect方法上

只用在tableviewCell中加如下方法即可


- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{

UIView *view = [super hitTest:point withEvent:event];

if ([view isKindOfClass:[UICollectionView class]]) {

return self;

}

return [super hitTest:point withEvent:event];

}

相关文章

网友评论

      本文标题:tableViewCell上collectionView空白部分

      本文链接:https://www.haomeiwen.com/subject/omoycxtx.html