ios - UICollectionViewLayout when is layoutAttributesForItemAtIndexPath called -


i'm subclassing uicollectionviewlayout, , layoutattributesforitematindexpath: method never called.

i know override layoutattributesforelementsinrect: well, i'd rather not have deal rect, lot simpler if deal index path.

if layoutattributesforitematindexpath: never called, whats point of it?

layoutattributesforitematindexpath: called in different scenarii, when add new cells collection view, when change layout, when reload specific index paths, etc.

you need implement it, though won't called in "default" scenario.


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -