Ios 我想水平和垂直滚动我的收藏视图。Can';我不知道怎么做

Ios 我想水平和垂直滚动我的收藏视图。Can';我不知道怎么做,ios,uicollectionview,Ios,Uicollectionview,我有一个画廊页面,我想有12个独特的集合视图,独立滚动。这我可以做到,但我也希望他们作为一个组垂直滚动。看起来他们需要待在一个桌椅上。但我似乎没法让它发挥作用。我用的是故事板。因此,问题是如何将CollectionView的输出放入tableCell,每个tableRow都保存一个唯一的CollectionView 这就是让collectionView水平和独立滑动的诀窍。每一个都有“标签”。现在我也需要垂直 - (UICollectionViewCell *)collectionView:(U

我有一个画廊页面,我想有12个独特的集合视图,独立滚动。这我可以做到,但我也希望他们作为一个组垂直滚动。看起来他们需要待在一个桌椅上。但我似乎没法让它发挥作用。我用的是故事板。因此,问题是如何将CollectionView的输出放入tableCell,每个tableRow都保存一个唯一的CollectionView

这就是让collectionView水平和独立滑动的诀窍。每一个都有“标签”。现在我也需要垂直

- (UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath: (NSIndexPath *)indexPath {

NSLog(@">>> Entering %s <<<", __PRETTY_FUNCTION__);

if (cv.tag == 0) {
MyCell *cell = [cv dequeueReusableCellWithReuseIdentifier:@"CELL" forIndexPath:indexPath];

UIImage *theImage = [UIImage imageNamed:[flowerImages objectAtIndex:indexPath.item]];
cell.imageView.image = theImage;

return cell;
} else if (cv.tag == 1) {
MyCell *cell = [cv dequeueReusableCellWithReuseIdentifier:@"CELL2" forIndexPath:indexPath];

UIImage *theImage = [UIImage imageNamed:[carImages objectAtIndex:indexPath.item]];
cell.imageView.image = theImage;

return cell;
} else {
MyCell *cell = [cv dequeueReusableCellWithReuseIdentifier:@"CELL3" forIndexPath:indexPath];

UIImage *theImage = [UIImage imageNamed:[birdImages objectAtIndex:indexPath.item]];
cell.imageView.image = theImage;

return cell;

  }
}
-(UICollectionViewCell*)collectionView:(UICollectionView*)cv cellForItemAtIndexPath:(NSIndexPath*)indexPath{

NSLog(@“>>>输入%s好的,我最终使用了静态表格单元格。成功