Это был новый API Blocks, который появился в iOs 4.0
Используйте это, если вы еще не в 4.0
CABasicAnimation *theAnimation;
theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.translation.x"];
theAnimation.duration=1;
theAnimation.repeatCount=2;
theAnimation.autoreverses=YES;
theAnimation.fromValue=[NSNumber numberWithFloat:0];
theAnimation.toValue=[NSNumber numberWithFloat:-60];
[view.layer addAnimation:theAnimation forKey:@"animateLayer"];
Этот бит кода перемещает представление на 60 пикселей влево, а затем обратно в исходное положение.
[пожалуйста, не забудьте проголосовать, если вы найдете этот ответ полезным :-)]