CAKeyframeAnimationを使用して、アプリでいくつかのアニメーションを実行しています。アニメーションと一緒にオーディオファイルを再生したいのですが(途中、場合によっては後)。どうすればこれを達成できますか?CAKeyframeAnimation用のAnimationDidStopSelectorはありますか、それともこれを行うための別のアプローチがありますか?
UIBezierPath *movePath = [UIBezierPath bezierPath];
[movePath moveToPoint:imageAnimation.center];
[movePath addQuadCurveToPoint:CGPointMake(839, 339)
controlPoint:CGPointMake(671, 316)];
CAKeyframeAnimation *moveAnim = [CAKeyframeAnimation animationWithKeyPath:@"position"];
moveAnim.path = movePath.CGPath;
CAAnimationGroup *animGroup = [CAAnimationGroup animation];
animGroup.animations = [NSArray arrayWithObjects:moveAnim, nil];
animGroup.duration = 0.5;
imageAnimation.layer.position = CGPointMake(839, 339);
imageAnimation.tag = 0;
[imageAnimation.layer addAnimation:animGroup forKey:nil];
break;