title: iOS - Setting UIButton background color only colors the corners
body: <p>I'm trying to customize my button by changing their colors, but when I use either:</p>
  
  <pre><code>self.loginButton.layer.backgroundColor = [UIColor colorWithRed:0.0 green:157.0/255.0 blue:223.0/255.0 alpha:1.0].CGColor;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>self.loginButton.backgroundColor = [UIColor colorWithRed:0.0 green:157.0/255.0 blue:223.0/255.0 alpha:1.0];
  </code></pre>
  
  <p>All I get is this result:</p>
  
  <p><img src="https://i.stack.imgur.com/sAVVt.png" alt="enter image description here"></p>
  
  <p>What I want to do is change the white color to blue, any idea what I'm doing wrong?</p>