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

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -