Search code examples
iphoneanimationcore-animation

What is the best way to animate many images?


I can not animate many images with animationImages and startAnimating as it uses too much memory and crashes. What is the best way to animate 100 images in a portion of my iPhone screen (not full screen)? Is there an example?


Solution

  • I think you have two solutions :

    1°) Subclass UIView and in the drawRect you draw each time another image. You add a NSTimer to create the animation ^^

    2°) Do the same as 1°) but with OpenGL ^^

    Good Luck ! :-)