CAAnimation -1 repeat count?

Daniel says Reinstate Monica picture Daniel says Reinstate Monica · Jan 3, 2011 · Viewed 11.2k times · Source

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

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

Answer

Phil picture Phil · Feb 21, 2011

You can also use

animation.repeatCount = INFINITY;

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