Reputation: 523
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);
}
Upvotes: 0
Views: 1830