views:

80

answers:

0

I'm trying to create a CAKeyframeAnimation with a little twist. I want part of the keyframe animation to loop for a while before going straight to the end. For example:

Intro: play keyframes 0 to 10
Loop:  play keyframes 11 to 15 (repeat for a while)
End:   play keyframes 16 to 20

CAKeyframeAnimation doesn't seem to provide enough flexibility, so that the only way I can think of solving this is by providing 3 distinct keyframe animations.

Is there any better solution out there?