nameless
nameless

Reputation: 809

modifying CABasicAnimation's setvalue in runtime?

I use CABasicAnimation in my project. I used repeatcount.but i want to change the tovalue whenever count is increased .any help please?

Upvotes: 0

Views: 290

Answers (1)

Ole Begemann
Ole Begemann

Reputation: 135578

If you want to change the toValue whenever the animation goes through one cycle, you should leave the repeatCount at 1 and use the animationDidStop:finished: to create a new animation with the changed toValue, and so on.

Upvotes: 2

Related Questions