toValue プロセスが完了した後、UIImageView transform.translation.x アニメーションを続行するにはどうすればよいですか。ボタン#2 の位置を変更し、ボタン#5 をクリックすると、55*2 から 55*5 になります。
- (void)animateArrow{
CABasicAnimation *theAnimation;
theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.translation.x"];
theAnimation.duration=0.4;
theAnimation.repeatCount=1;
theAnimation.toValue=[NSNumber numberWithFloat:50];
[buttonArrow.layer setValue:theAnimation.toValue forKey:theAnimation.keyPath];
[buttonArrow.layer addAnimation:theAnimation forKey:@"transform.translation.x"];
}