I start the animated extension when I touch the image, and then reduce it to its normal size when it is released. With setAnimationBeginsFromCurrentState: YES, the zoom effect is nice and smooth if you lift part of your finger through the animation.
However, what I want to do is to โlockโ the larger size in place if you touch the image long enough to complete the animation, but let it shrink as usual if you release it prematurely.
Is there a way to find out if there is an animation at the moment, or is a specific animation completed?
I suppose I can possibly do this with the performSelector: afterDelay: call in touchesStarted function, with a delay equal to the length of the animation and cancel it if touchEEnd arrives too soon, but I canโt imagine that this is the best way ...
source
share