Привет, у меня UICollectionView, вертикаль без раскадровки, показывает только пять элементов. Я хочу увеличить пространство только между первой и второй ячейкой, остальная часть ячейки останется с тем же пробелом
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,
0)];[self.view addSubview: homeCollectionView];
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView
*)collectionView
{
return [homeItems count];
return 0;
- (NSInteger)collectionView:(UICollectionView *)collectionView
numberOfItemsInSection:(NSInteger)section
{
return 0;
}
- (CGFloat)collectionView:(UICollectionView *)collectionView
layout:(UICollectionViewLayout*)collectionViewLayout .
minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
return 5.0;
}
- (NSInteger)minimumLineSpacingForCollectionView:(UICollectionView
*)collectionView layout:
(UICollectionViewLayout*)collectionViewLayout
{
- (NSInteger)minimumInteritemSpacingForCollectionView:
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:
-(UICollectionViewLayoutAttributes
- (NSInteger)minimumLineSpacingForSectionsInCollectionView: