我需要在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