I trying to do an animation on the iPhone and I hope someone can help me out here as I'm stumped.
I am using CAKeyframeAnimation with CAPath to animate views around.
I have these settings set:
animation.removedOnCompletion = YES;
animation.fillMode = kCAFillModeRemoved;
So that the animation is removed from the layer when the animation finishes I want the view to respond to touches. As I have found that if I set:
animation.removedOnCompletion = NO;
animation.fillMode = kCAFillModeForwards;
then the view no longer responds to touches after the animation.
This has also had the negative side effect of having to manually position the view to its finished location when the animation finishes.
The theory of what I'm doing works but in practice there is a jump of the view back to its original position before I can manually set its position in the animationDidStop method.
So is it possible to have the final position of animation stay and the view respond to touches?