画像配列のアニメーションがありますが、これは連続ループです。1つのループだけを循環して、最後のフレームで停止するにはどうすればよいですか?
- (void) balloonAnimation
{
NSMutableArray *balloonAnimationImages = [NSMutableArray arrayWithCapacity:27];
for (NSInteger i = 0; i < 27; i++) {
NSString *nameOfImage = [NSString stringWithFormat:@"balloons%d.png", i+1];
UIImage *image = [UIImage imageNamed:nameOfImage];
[balloonAnimationImages addObject:image];
}
//animate here
self.imgBalloon.animationImages = balloonAnimationImages;
self.imgBalloon.animationDuration = 5.0f;
[self.imgBalloon startAnimating];
}