1

I'd like to make my UICollectionViewCell shaking after a long pressure (UILongPressGestureRecognizer) in order to delete an item.

I've read this post and another one.

I succeeded to make my cells shaking by adding as suggested a method in my custom Cell class.

But how do I stop it after another long pressure ?

Community
  • 1
  • 1
Jan ATAC
  • 1,212
  • 1
  • 18
  • 36

1 Answers1

2

I found the answer here : I put this simple line in another method.

[self.layer removeAllAnimations];
Community
  • 1
  • 1
Jan ATAC
  • 1,212
  • 1
  • 18
  • 36