質問

私の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"];
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top