title: Can the new tintColor property of UIImageview in iOS 7 be used for animating images?
body: <p>tintColor is a life saver, it takes app theming to a whole new (easy) level.</p>
  
  <pre><code>//the life saving bit is the new UIImageRenderingModeAlwaysTemplate mode of UIImage
  UIImage *templateImage = [[UIImage imageNamed:@"myTemplateImage"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
  imageView.image = templateImage;
  
  //set the desired tintColor
  imageView.tintColor = color;
  </code></pre>
  
  <p>The above code will "paint" the image's non-transparent parts according to the UIImageview's tint color which is oh so cool.No need for core graphics for something simple like that.</p>
  
  <p>The problem I face is with animations.</p>
  
  <p>Continuing from the above code:</p>
  
  <pre><code>//The array with the names of the images we want to animate
  NSArray *imageNames = @[@"1",@"2"@"3"@"4"@"5"];
  
  //The array with the actual images
  NSMutableArray *images = [NSMutableArray new];
  for (int i = 0; i &lt; imageNames.count; i++)
  {
      [images addObject:[[UIImage imageNamed:[imageNames objectAtIndex:i]] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]];
  }
  
  //We set the animation images of the UIImageView to the images in the array
  imageView.animationImages = images;
  
  //and start animating the animation
  [imageView startAnimating];
  </code></pre>
  
  <p>The animation is performed correctly but the images use their original color (i.e. the color used in the gfx editing application) instead of the UIImageView's tintColor.</p>
  
  <p>I am about to try to perform the animation myself (by doing something a little bit over the top like looping through the images and setting the UIImageView's image property with a NSTimer delay so that the human eye can catch it).</p>
  
  <p>Before doing that I'd like to ask if the tintColor property of UIImageView is supposed to support what I'm trying to do with it i.e use it for animations.</p>
  
  <p>Thanks.</p>