Animate to one specific keyframe value of an CAKeyframeAnimation

260 Views Asked by At

I have four positions in my CAKeyframeAnimation that are part of a bezier path and my animation is working great along the path. But now I need the animated sprite to be moved to one specific value of the keyframe position values. how could I realize that? thnx!

1

There are 1 best solutions below

5
On

Pull the relevant values out of the CAKeyframeAnimation's keyTimes, values, and potentially timingFunctions arrays, then create a CABasicAnimation out of those.