Does anyone know why contentSize is not updated immediately after reloadData is called on UICollectionView?
If you need to know the contentSize the best work around
This worked for me:
[self.collectionView.collectionViewLayout invalidateLayout]; [self.collectionView.collectionViewLayout prepareLayout];