Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CAAnimation -1 repeat count?

how can i make my CAKeyframeAnimation have a never ending repeat count?

I tried animation.repeatCount = -1; but it only repeats once.

like image 644
Daniel says Reinstate Monica Avatar asked Jan 03 '11 00:01

Daniel says Reinstate Monica


1 Answers

You can also use

animation.repeatCount = INFINITY;

This is exactly the same as HUGE_VALF, but I prefer INFINITY as it speaks by itself.

like image 122
Phil Avatar answered Sep 19 '22 16:09

Phil