I have a keyframeAnimation and I define a Path, but the animation doesn't work.
Do you see anything wrong? :S
Here is the code:
CAKeyframeAnimation *animKF = [CAKeyframeAnimation animationWithKeyPath:@"position"];
CGMutablePathRef animationPath = CGPathCreateMutable();
CGPathMoveToPoint(animationPath, NULL, 300, 100);
CGPathAddArcToPoint(animationPath, NULL, 300, 100, 800, 500, 500);
animKF.path = animationPath;
animKF.duration = 3;
animKF.rotationMode = kCAAnimationRotateAuto;
[imageView.layer addAnimation:animKF forKey:@"keyframe"];
Thank you so much