title: How to Add UIImage to NSMutableArray
body: <p>I'm trying to add my <code>UIImage</code> from web service to my NSMutableArray using this code:</p>
  
  <pre><code>for (int i=0; i&lt;[totalRowCountString intValue]; i++)
  {    
      NSString *criticsRatingString = [[JSON valueForKeyPath:@"movies.ratings.critics_rating"] componentsJoinedByString:@" "];
      NSLog(@"criticsRatingString: %@", criticsRatingString);
  
      if ([criticsRatingString isEqualToString:@"Certified Fresh"])
      {
          self.ratingImage = [UIImage imageNamed:@"rt_certified_fresh.png"];
      }
      else if ([criticsRatingString isEqualToString:@"Fresh"])
      {
          self.ratingImage = [UIImage imageNamed:@"rt_fresh.png"];
      }
      else if ([criticsRatingString isEqualToString:@"Rotten"])
      {
          self.ratingImage = [UIImage imageNamed:@"rt_rotten.png"];
      }
      else if ([criticsRatingString isEqualToString:@"Spilled"])
      {
          self.ratingImage = [UIImage imageNamed:@"rt_spilled.png"];
      }
      else if ([criticsRatingString isEqualToString:@"Upright"])
      {
          self.ratingImage = [UIImage imageNamed:@"rt_upright.png"];
      }
  
      [tomatorRatingImages addObject:self.ratingImage];
      NSLog(@"tomatoRatingImages: %@", tomatorRatingImages);
  }
  </code></pre>
  
  <p>But my NSLog for tomatoRatingImages returns NULL. Any ideas why it returns NULL?</p>
  
  <p>UPDATE: my NSMutableArray is already initialized in my viewWillAppear method.</p>