☠️ SelfSizingWaterfallCollectionViewLayout is a UICollectionViewLayout subclass that organizes items of dynamic height into a grid of variable columns (as if you're winning at Tetris upside-down). Designed for use alongside AutoLayout and iOS8 self-sizing cell technologies.
When i use two different cell for my collection view with SelfSizingWaterfallCollectionViewLayout i reload data after network call then some time app freeze and shows CPU usages 100%.
In My case, i have used layoutIfNeeded function in my view and when i tried to load celled, prepareLayout function of SelfSizingWaterfallCollectionViewLayout called continue and app freeze and crash after some time.
I'm using AWPagedArray in conjunction with SelfSizingWaterfallCollectionViewLayout. Whenever a network request comes back with a page of data, I want to invalidate only those cells. Reason being, if I just invalidate the whole layout, I experience noticeable lag, disrupting the smooth scrolling experience I was aiming to achieve.
-[MakeEatSeeUI.RecipeWaterfallViewController numberOfSectionsInCollectionView:]: unrecognized selector sent to instance 0x7fc243d128e0'
*** First throw call stack: