0

enter image description here

By default, when you create a collection view , items are top and bottom margins are generated.

I want to move the cell position. (Center to bottom) Is there any way to solve ?

- (CGSize)collectionView:(UICollectionView *)collectionView
                  layout:(UICollectionViewLayout *)collectionViewLayout
  sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    return CGSizeMake(collectionView.frame.size.width / 2.2, collectionView.frame.size.height-60);
}
realmasse
  • 523
  • 1
  • 6
  • 18

1 Answers1

2

enter image description here

OK. Change value in Collection view flow layout.

realmasse
  • 523
  • 1
  • 6
  • 18