title: Another UIButton background color issue
body: <p>Yet another simple issue with changing the background color of a UIButton. So I have figured after searching a bit that a common way is to either create an image or subview.</p>
  
  <p>I have created a button in storyboard and connected it to an outlet. In my VC class I have the following</p>
  
  <h2>.h</h2>
  
  <pre><code>@property (nonatomic, readwrite, strong) IBOutlet UIButton *uiLoginButton;
  </code></pre>
  
  <h2>.m</h2>
  
  <pre><code>- (void)viewDidLoad
  {
  [super viewDidLoad];
  NSLog(@"%s and frame rect %@", __PRETTY_FUNCTION__, self.uiLoginButton); //here uiloginbutton does not have any size!
  
  CGRect buttonRect = CGRectMake(50, 50, 100.0, 100.0);
  
  self.uiLoginButton = [UIButton buttonWithType:UIButtonTypeCustom];
  self.uiLoginButton.frame = buttonRect;
  self.uiLoginButton.backgroundColor = [UIColor redColor];
  NSLog(@"%s and frame rect %@", __PRETTY_FUNCTION__, self.uiLoginButton);    
  }
  </code></pre>
  
  <p>No I have set the values in CGRectMake randomly because the IBOutlet button's frame is 0. How come? </p>
  
  <p>What is the correct way to actually change the button's color?</p>