small medium large xlarge

04 Nov 2008, 17:52
Darren Andes (5 posts)

I’m create a CAAnimation for the iPhone that move a CALayer’s position from point A to point B and then loops infinitely. The problem I’m having is that when looping the animated position moves A > B, B > A, A > B in a smooth motion, I want to loop the animation A > B, A > B without the position animating from point B to point A so it’s an immediate jump to the beginning A position.

Any help would be appreciated.

I also bought both iPhone SDK Development & Core Animation for Mac OS X and the iPhone, they are fantastic books.

05 Nov 2008, 02:02
Bill Dudney (916 posts)

Hi Darren,

Thanks for the kind words!

I think you can get what you are looking for by setting the autoreverses flag to NO.

Good luck and please post back if this does not fix the problem.

You must be logged in to comment