title: UIImageView animation causing crash
body: <p>I have a UIAnimation view that plays an array of PNG images as an animation. There are about 200 frames and total size is about 8 MB. The animation works just fine on simulator and iPhone 4, but when I test on iPhone 3GS, the app crashes due to the animation. </p>
  
  <p>I've tried using <code>UIImage imageNamed:</code>, but I read that using <code>imageWithData</code> might be faster, so I have this:</p>
  
  <pre><code>            NSString *imageName=[NSString stringWithFormat:@"fishBg_%i.png", i];
              NSString *fileLocation = [[NSBundle mainBundle] pathForResource:imageName ofType:nil];
              NSData *imageData = [NSData dataWithContentsOfFile:fileLocation];
              [animationArray addObject:[UIImage imageWithData:imageData]];
  </code></pre>
  
  <p>What can my problem be? When I reduce the number of frames to about 100, then the animation plays and the app doesn't crash. But when I bring up the frame count to 200, then the app crashes. What's a better way to do this? The animation is a PNG sequence of transparent images, so I'm not sure if I'd be able to convert this to a video and keep its transparency and place other images under it.</p>