Как я могу продолжить анимацию преобразования UIImageView transform.translation.x после завершения процесса toValue. Например: при нажатии кнопки # 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"];
}
Спасибо, помощник. Работает как шарм .. :) –