title: Using Tint color on UIImageView
body: <p>I have my own subclass of <code>UIButton</code>. I add <code>UIImageView</code> on it and add an image. I would like to paint it over the image with a tint color but it doesn't work.</p>
  
  <p>So far I have: </p>
  
  <pre><code>- (id)initWithFrame:(CGRect)frame
  {
      self = [super initWithFrame:frame];
      if (self) {
  
          self.backgroundColor = [UIColor clearColor];
          self.clipsToBounds = YES;
  
          self.circleView = [[UIView alloc]init];
          self.circleView.backgroundColor = [UIColor whiteColor];
          self.circleView.layer.borderColor = [[Color getGraySeparatorColor]CGColor];
          self.circleView.layer.borderWidth = 1;
          self.circleView.userInteractionEnabled = NO;
          self.circleView.translatesAutoresizingMaskIntoConstraints = NO;
          [self addSubview:self.circleView];
  
          self.iconView = [[UIImageView alloc]init];
          [self.iconView setContentMode:UIViewContentModeScaleAspectFit];
          UIImage * image = [UIImage imageNamed:@"more"];
          [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
          self.iconView.image = image;
          self.iconView.translatesAutoresizingMaskIntoConstraints = NO;
          [self.circleView addSubview:self.iconView];
          ...
  </code></pre>
  
  <p>and on selection : </p>
  
  <pre><code>- (void) setSelected:(BOOL)selected
  {
      if (selected) {
          [self.iconView setTintColor:[UIColor redColor]];
          [self.circleView setTintColor:[UIColor redColor]];
      }
      else{
          [self.iconView setTintColor:[UIColor blueColor]];
          [self.circleView setTintColor:[UIColor blueColor]];
      }  
  }
  </code></pre>
  
  <p>What did I do wrong? (The color of the image always stays the same as it was originally.)</p>