I want to animate series of images in my app.
I found following code for animate :
imgView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"4.png"],
[UIImage imageNamed:@"4.png"],
[UIImage imageNamed:@"4.png"],
[UIImage imageNamed:@"3.png"],
[UIImage imageNamed:@"3.png"],
[UIImage imageNamed:@"3.png"],
[UIImage imageNamed:@"2.png"],
[UIImage imageNamed:@"2.png"],
[UIImage imageNamed:@"1.png"],
[UIImage imageNamed:@"1.png"],
nil];
imgView.animationDuration = 3.00;
imgView.animationRepeatCount = 1.0;
[imgView startAnimating];
But above code is good when we have less number of images to animate. Else it will decrease the app performance.
Whereas I have to animate too many images.
So which are the other option? And Which is the best way to do this ?