Now the UICollectionViewCells size will be equal to:
UITableViewCell height - (UICollectionView top + bottom UIEdgeInsets)
This will avoid the UICollectionView to print multiple console errors if the programmer made a cell too big to fit in the UICollectionView frame.
To correctly size a UICollectionViewCell just make sure to set the tableView heightForRowAt indexPath:, collectionViewLayout: insetForSectionAt section: and use the formula contained in collectionViewLayout: sizeForItemAt indexPath:
UICollectionViewCell
s size will be equal to:This will avoid the
UICollectionView
to print multiple console errors if the programmer made a cell too big to fit in theUICollectionView
frame. To correctly size aUICollectionViewCell
just make sure to set thetableView heightForRowAt indexPath:
,collectionViewLayout: insetForSectionAt section:
and use the formula contained incollectionViewLayout: sizeForItemAt indexPath: