-
Notifications
You must be signed in to change notification settings - Fork 175
How to subclass UICollectionViewLayoutAttributes and use the custom attributes in your extension? #34
Comments
Any answer? ;) |
Hi faesa, It's hard to know what is wrong without debugging it. For the slowness, If I had to guess it probably has something to do with recalculating the layout while dragging conflicting with the animation. I am currently working on a major project for my work, and it leaves little time for other projects. As you can see I have a bunch of unresolved issues. I do have an experimental (unfinished) rewrite I have yet to publish that may or may not resolve your issue. I will try to take some time soon to resolve some of the outstanding issues. |
Thanks a lot @lukescott, I'll wait for your future release. |
Hi faesa, |
Hi roiholtzman, |
Hi faesa, |
Hi faesa,
|
Hi Luke, it's cool to provide such a great extension, thank you!
I successfully implemented it in my project work. In the same way I've tried to add a jiggling effect and a delete button on each cell when the longPress is fired (exactly the same behavior of iPhone's native Springboard).
To do so I've introduced a trigger (isDeletionModeActive) in viewController.m and it is positioned to YES when longPress gesture began.
Then I've subclassed the 2 classes below, for 2 reasons:
(you can find more details of the logic here : http://code.tutsplus.com/tutorials/uicollectionview-layouts--mobile-13426)
But the resulting behavior isn't the one I expect as the dragging works (but not as smooth as expected during pan gesture) but the destination cell disappears when I dropped the selected cell on it.
Do you a solution so that I can subclass UICollectionViewLayoutAttributes without affect your extension logic?
Thanks a lot for your help.
The text was updated successfully, but these errors were encountered: