I am trying to use the so called "self sizing cell" which means:
estimatedItemSize
on flowLayout
preferredLayoutAttributesFittingAttributes
in cell classSuch as this: UICollectionView Self Sizing Cells with Auto Layout
And I need dynamic effect like this:http://www.teehanlax.com/blog/implementing-a-bouncy-uicollectionviewlayout-with-uikit-dynamics/
It works fine without UIDynamic, but I need UIDynamic. As what I see, it will call the prepareLayout
and layoutAttributesForElementsInRect
until die, there will be too many _updateVisibleCellsNow
waiting in line.
I have no idea how to solve that, please help me in case u see. Or, if I am using those technologies in wrong way, please let me know.
Two things worked for me:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With