headkit
headkit

Reputation: 3327

Animate to one specific keyframe value of an CAKeyframeAnimation

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!

Upvotes: 0

Views: 256

Answers (1)

Christian
Christian

Reputation: 1714

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

Upvotes: 1

Related Questions