title: iOS - UIImageView Animation receiving memory warning
body: <p>I am attempting to run two UImageViews that have multiple arrays of animations they load and animate based on a selection the user makes. For example, here is one method:</p>
  
  <pre><code>-(void)initiateAnimations {
  
  nullAnimation = [NSArray arrayWithObjects:
  
            [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"null0002" ofType:@"png"]],
            [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"null0003" ofType:@"png"]],
            [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"null0004" ofType:@"png"]],
            [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"null0005" ofType:@"png"]],
            [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"null0006" ofType:@"png"]],
            [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"null0007" ofType:@"png"]],
            [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"null0008" ofType:@"png"]],
            [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"null0009" ofType:@"png"]],
            [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"null0010" ofType:@"png"]], nil];
  }
  </code></pre>
  
  <p>And here is an <code>IBAction</code> calling the animation method:</p>
  
  <pre><code>-(IBAction)nullani {
  player.animationImages = nullAnimation;
  player.animationDuration = 0.50;
  player.animationRepeatCount = 1;
  [player startAnimating];
  }
  </code></pre>
  
  <p>It all works well at first, but keep in mind i have about 5-6 other arrays of animations roughly with the same size images. They arent huge, ranging from 12-80k .png files. When i attempt to animate after a few times, I am recieving this error in the output:</p>
  
  <p><code>2013-03-16 01:34:44.438 [3316:907] Received memory warning.</code></p>
  
  <p>After i receive this message, any new animation loaded will crash the app.
  I ran it through Instruments and was unable to find any leaks, and the output gives me nothing upon crash.</p>
  
  <p>Is there any memory issues here? how can i get rid of this issue? thanks.</p>