LongPress improvements and bug fix
-
Improve the
Move
long press position relative to the long press view, for now, it will be the same as you originally press. (Same as Apple Calendar) -
Fix a serious bug caused by CollectionView Reusability.
- The
CurrentMovingCell
used before will be replaced when that reference is reused. Which could cause the editing reference totally wrong. - Also, with reusing, the editing cell will be refreshed if it has been reused, which means when you scroll back to that page, this event will be there instead of hidden or translucent.
- In order to fix that problem, in
Move
longPress, the custom CollectionViewCell has to inherit fromJZBaseEventCell
in order to get theJZBaseEvent
and find the original editing cell because of the reusability ofUICollectionView
- The