アニメーションの最後のフレームをフリーズ?
質問
私のiphoneアプリで私のアニメーションの最後のフレームを凍結する方法はありますか?ここに私のコードは、これまでのところです。
popup.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"picture1.png"],
[UIImage imageNamed:@"picture2.png"],
[UIImage imageNamed:@"picture3.png"],
[UIImage imageNamed:@"picture4.png"],
[UIImage imageNamed:@"picture5.png"],
[UIImage imageNamed:@"picture6.png"],
[UIImage imageNamed:@"picture7.png"], nil];
popup.animationDuration = 1.750567;
popup.animationRepeatCount = 1;
[popup startAnimating];
[self.view addSubview:popup];
解決
アニメーションはその
image
プロパティでUIImageViewショーUIImageセットを停止し、。あなたは自分のアニメーションの最後のフレームに設定する必要がありますのでます:
popup.image = [UIImage imageNamed:@"picture7.png"];
所属していません StackOverflow