title: IOS/Objective-C: Change tint of an image view
body: <p>I would like to change the color of an image view when the user touches it.  I don't need it to change a great deal.  However, I would like it to change to a shade of blue.  I found the following code to change the gradient but it is not having any effect.  I don't need a gradient, actually, only a tint.  Would appreciate any suggestions.</p>
  
  <pre><code> UIView *snapshot = [[UIImageView alloc] initWithImage:image];
          snapshot.layer.masksToBounds = NO;
            CAGradientLayer *gradient = [CAGradientLayer layer];
  
          gradient.colors = @[(id)[UIColor redColor].CGColor, (id)[UIColor blackColor].CGColor];
  
          [snapshot.layer insertSublayer:gradient atIndex:0];
  </code></pre>