I'm trying to create a static UICollectionView with 3 rows and 2 columns
I calculated the width of cell by dividing screen width into two
([[UIScreen mainScreen] bounds].size.width)/2
Now I don't want cell height to exceed UICollectionView
height
How do i calculate this ?
I tried getting frame height of UICollectionView and divide it by 3 but it's not totally correct
int height = collectionView.frame.size.height/3;
What is the correct way to give a static height of the cell without exceeding UICollectionView height ?