我需要在4个不同的图像上进行一系列动画。图像按顺序排列。它将从第一个图像的移动开始,当它停止时,第二个图像将移动,其他人将跟随。有人可以帮帮我吗?一个接一个地在不同的图像上使用一系列动画
在此先感谢
潘卡
回答
[UIView animateWithDuration:2.0
animations:^{
ballon1.center = CGPointMake(260, 50);
}
completion:^(BOOL finished){
[UIView animateWithDuration:1.5
animations:^{
ballon2.center = CGPointMake(260, 140);
}
completion:^(BOOL finished){
[UIView animateWithDuration:1.0
animations:^{
ballon3.center = CGPointMake(260, 230);
}
completion:^(BOOL finished){
[UIView animateWithDuration:1.0
animations:^{
ballon4.center = CGPointMake(260, 320);
}
completion:^(BOOL finished){
;
}];
}];
}
];
}];
谢谢cduhn ...这就是我一直在寻找的东西 – pankaj