4つの異なる画像でアニメーションのシリーズを行う必要があります。画像は順番に並べられます。最初の画像の動きから始まり、停止すると2番目の画像が移動し、同様に他の画像が続きます。誰か助けてくれますか?事前に異なる画像で一連のアニメーションを次々と使用する
おかげ
パンカジ
回答
[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