嗨,我有一个没有情节提要的垂直UICollectionView,仅显示了五个项目,我想仅在第一个和第二个单元格之间扩展空间,其余的单元格将保留相同的空间
process.StartInfo.RedirectStandardOutput = true;
0)]; [self.view addSubview:homeCollectionView];
homeCollectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:[[QLVHomeCollectionViewLayout alloc] init]];
[homeCollectionView registerClass:[UICollectionReusableView class]
forSupplementaryViewOfKind:UICollectionElementKindSectionHeader
withReuseIdentifier:@"DUMMY"];
homeCollectionView.showsHorizontalScrollIndicator = NO;
homeCollectionView.showsVerticalScrollIndicator = NO;
homeCollectionView.backgroundColor = [UIColor clearColor];
homeCollectionView.delegate = self;
homeCollectionView.dataSource = self;
homeCollectionView.scrollsToTop = YES;
[homeCollectionView setContentInset:UIEdgeInsetsMake(-10, 0, 0,