title: UIButton color issues
body: <p>How can I change the color of the text on my UIButton. Here is my current code:</p>
  
  <pre><code>    UIButton *b1 = [[UIButton alloc] init];
      b1.frame = CGRectMake(280,395,30,30);
      [[b1 layer] setCornerRadius:8.0f];
      [[b1 layer] setMasksToBounds:YES];
      [[b1 layer] setBorderWidth:1.0f];
      [[b1 layer] setBackgroundColor:[botCol CGColor]];
      b1.titleLabel.font = [UIFont boldSystemFontOfSize:24];
      [b1 setTitleColor:[UIColor redColor] forState:UIControlEventAllEvents];
      [b1 addTarget:self action:@selector(NextButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
      [b1 setTitle:@"&gt;" forState:UIControlStateNormal];
      [self.view addSubview:b1];
  </code></pre>
  
  <p>Here is what it looks like (ignore the background color and stuff):</p>
  
  <p><img src="https://i.stack.imgur.com/wLdOp.png" alt="enter image description here"></p>
  
  <p>Now, how can I get the arrow to be red? As you see above, I already have the following:</p>
  
  <pre><code>[b1 setTitleColor:[UIColor redColor] forState:UIControlEventAllEvents];
  </code></pre>
  
  <p>but it isn't working.</p>