私は5つの画像を持っていますが、を別様にとの両方にアニメーション表示するだけです。画面にはが表示されます。私は別のアニメーションコードを持っていますが、アニメーションを作成するために一連のイメージを使用しています。ご関心を複数の画像を同時にアニメーション化する
ありがとうそんなに@Robと@Aadhiraを助けてください。ここで私はそれはすべてあなたがしたいアニメーションの種類に依存曲線
if(isAnimate) {
NSLog(@"+30,+15");
[UIView beginAnimations: @"moveView" context: nil];
[UIView setAnimationDelegate: self];
[UIView setAnimationDuration: 0.5];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
searchLight1.frame = CGRectMake(searchLight1.frame.origin.x+30, searchLight1.frame.origin.y + 15, searchLight1.frame.size.width, searchLight1.frame.size.height);
[UIView commitAnimations];
isAnimate = NO;
}
else {
NSLog(@"-30,-15");
[UIView beginAnimations: @"moveView" context: nil];
[UIView setAnimationDelegate: self];
[UIView setAnimationDuration: 0.5];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
searchLight1.frame = CGRectMake(searchLight1.frame.origin.x-30, searchLight1.frame.origin.y -15, searchLight1.frame.size.width, searchLight1.frame.size.height);
[UIView commitAnimations];
isAnimate = YES;
}
本当の答えが必要な場合は、何をしたいかについてもっと具体的にする必要があります。しかしCore Animationについて読んだり、Core Aimationに関するWWDCのビデオを見たりすることで、あなたを始められるかもしれません。 –