title: UIImageView Border Color
body: <p>I have the following code:</p>
  
  <pre><code>UIColor *borderColor = [UIColor colorWithRed:182 green:10 blue:96 alpha:1.0];
  [viewImage.layer setBorderColor:borderColor.CGColor];
  [viewImage.layer setBorderWidth:3.0];
  [productView addSubview:viewImage];
  </code></pre>
  
  <p>where <code>viewImage</code> is my <code>UIImageView</code> and <code>productView</code> is my <code>UIView</code>.</p>
  
  <p>I want to get this color <img src="https://i.stack.imgur.com/f2BC7.png" alt="enter image description here">, but all I am getting is this color <img src="https://i.stack.imgur.com/wB2Ym.png" alt="enter image description here">. I tried different values, and all the colors that I am getting is either white, red, black, yellow, or blue. I can't get any other colors, doesn't matter what values I enter. I tried colorWithHue:Saturation:Brightness and I have the same issue.</p>
  
  <p>I am using this on iOS 6 SDK.</p>
  
  <p>What am I doing wrong and how can I fix it?</p>