私はこのアニメーションを1つの背景画像と、中央にある針の12画像で構成します。実行中のokですが、イメージとイメージを表示するたびに、イメージ間でスムーズに動くようにします。どうやってやるの?ここスムーズな画像アニメーションを作成する方法
私の現在のコードです:
- (IBAction)startAnimation:(id)sender
{
imgAnimation.frame = CGRectMake(0, 0, 184.5f, 172.5f);
imgAnimation.center = CGPointMake(160, 164);
imgAnimation.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"pointer01.png"],
[UIImage imageNamed:@"pointer02.png"],
[UIImage imageNamed:@"pointer03.png"],
[UIImage imageNamed:@"pointer04.png"],
[UIImage imageNamed:@"pointer05.png"],
[UIImage imageNamed:@"pointer06.png"],
[UIImage imageNamed:@"pointer07.png"],
[UIImage imageNamed:@"pointer08.png"],
[UIImage imageNamed:@"pointer09.png"],
[UIImage imageNamed:@"pointer10.png"],
[UIImage imageNamed:@"pointer11.png"],
[UIImage imageNamed:@"pointer12.png"], nil];
[imgAnimation setAnimationRepeatCount:5];
[imgAnimation setAnimationDuration:4.0f];
[imgAnimation startAnimating];
}
あなたはこの質問には、ほんの数時間前に頼ま参照してくださいませんか? http://stackoverflow.com/questions/10053207/how-to-animate-a-set-of-images Dupeアカウント??? –
これは私がしたいことではありません。 –
オクラホマ..ごめんなさい:-)) –