0
我正在移动图像,然后展开图像。问题是我的形象正在快速移动。有没有办法让2个动画运行并控制速度?这里是代码:如何控制动画速度?
- (IBAction)pushmove {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2.5];
square.transform = CGAffineTransformMakeTranslation(-200,-300);
[UIView setAnimationDuration:1.5];
square.transform = CGAffineTransformMakeScale(8,8);
[UIView commitAnimations];