I'm facing a strange issue while scrolling my UICollectionView
. It's showing a blank view without any cells in it.
It strangely hides my cell or removes my cell, I don't know, but I'm unable to find any solution.
I have tried these solutions from SO:
1st : Tried to create custom class of UICollectionViewFlowLayout
and do as directed with all different methods but unable to solve my issue.
2nd : Tried below method to reattribute and recalculate my cell size :
-(BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds
{
return YES;
}
Links I followed :
Que1: UICollectionView's cell disappearing
Que2: UICollectionView items disappear when scrolling with my own UICollectionViewFlowLayout subclass
Please guide me whats wrong with simple collectionview with custom cell.
Reference Image :