I want to show a UICollectionView which contains exactly 2 rows and 100 cells in each row.
// 1 - (NSInteger)collectionView:(UICollectionView *)view numberOf
For 3 cells per row .. Add this code.
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath { return CGSizeMake(collectionView.frame.size.width/3.2 , 100); }