CALayer moves instantly when trying to animate?

You're pretty close. I would just change your code in the loop to this: for(int i=0;iYou might want to set up the layers and add them when your view loads, and then animate them as a response to some other action or by calling performSelector:withObject:afterDelay passing it some delay that will allow it a chance to get queued for a later run loop iteration.

You're pretty close. I would just change your code in the loop to this: for(int i=0;iYou might want to set up the layers and add them when your view loads, and then animate them as a response to some other action or by calling -performSelector:withObject:afterDelay passing it some delay that will allow it a chance to get queued for a later run loop iteration.

That works great! Thanks! – carloe Jul 22 '10 at 23:02.

You have to set new layer position in animation, not directly on layer. CAlayer *layer = ... CABasicAnimation *positionAnimation = CABasicAnimation animationWithKeyPath:@"transform. Translation"; positionAnimation.

FromValue = oldPOsition positionAnimation. ToValue = newPosition positionAnimation. Duration = n; positionAnimation.

Delegate = self; layerToAnimate addAnimation:layerAnimation forKey:@"transform. Translation".

The problem is that what you are outlining is an explicit animation, and the layer reverts back to it's origin position when the animation finishes. – carloe Jul 22 '10 at 20:40.

Y + offset) it shows up at its final position instantly. Am I missing something?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions