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];