使用collectionView选择tableView单元格

时间:2014-04-06 20:18:56

标签: ios uitableview uicollectionview uicollectionviewcell

我试图选择它,但我不能

我使用两种方法

 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath

如果我触摸某个元素或任何背景,我想选择完整单元格

=====更新 我想选择单元格并抓住这个触摸

===== UPDATE2 我在其中使用了coolectionView自定义单元格,我覆盖了layoutSubviews方法,它需要我显示集合

 -(void)layoutSubviews

{
    [super layoutSubviews];

self.collectionView.frame = self.contentView.bounds;
}

然后我将所有作品都关闭,但我看不到我的收藏品

0 个答案:

没有答案
相关问题