Objective - C, fastest way to show sequence of images in UIImageView
Posted
by
Almas Adilbek
on Stack Overflow
See other posts from Stack Overflow
or by Almas Adilbek
Published on 2012-06-21T02:48:45Z
Indexed on
2012/06/21
3:16 UTC
Read the original article
Hit count: 211
I have hundreds of images, which are frame images of one animation (24 images per second). Each image size is 1024x690.
My problem is, I need to make smooth animation iterating each image frame in UIImageView.
I know I can use animationImages of UIImageView. But it crashes, because of memory problem.
Also, I can use imageView.image = [UIImage imageNamed:@""]
that would cache each image, so that the next repeat animation will be smooth. But, caching a lot of images crashed app.
Now I use imageView.image = [UIImage imageWithContentsOfFile:@""]
, which does not crash app, but doesn't make animation so smooth.
Maybe there is a better way to make good animation of frame images?
Maybe I need to make some preparations, in order to somehow achieve better result. I need your advices. Thank you!
© Stack Overflow or respective owner