0
toValue 프로세스가 완료된 후 어떻게 UIImageView transform.translation.x 애니메이션을 계속 진행할 수 있습니까? 예 : 버튼 1을 누르면 1에서 55로, 버튼 2를 55에서 110로 누릅니다. ... 단추 # 2의 위치에 있고 단추 # 5를 누른 다음 55 * 2에서 55 * 5까지를 클릭합니다.CABasicAnimation fromValue에서 계속
- (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"];
}
감사합니다. 매력 작품처럼 .. :) –