ビューを移動するこのコードがあります。
CABasicAnimation *theAnimation;
theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.translation.x"];
theAnimation.duration=1;
theAnimation.repeatCount=1;
theAnimation.autoreverses=NO;
theAnimation.fromValue=[NSNumber numberWithFloat:0];
theAnimation.toValue=[NSNumber numberWithFloat:-60];
[view.layer addAnimation:theAnimation forKey:@"animateLayer"];
問題は、アニメーションの終了後にビューの実際の座標がリセットされることです。アニメーションが終了した後、ビューが新しい座標にとどまる可能性はありますか?
ありがとう。