title: Change the background color of a button
body: <p>I have code that counts upwards when buttons on my app are pressed, but I'd also like to change the button's background color once it has been tapped.</p>
  
  <p>Can I simply add a <code>backgroundColor</code> to the below code?</p>
  
  <pre><code>- (IBAction)buttonPressed {
  count++;
  totalLabel.text = [NSString stringWithFormat:@"Hours\n%li",(long)count];
  }
  @end
  </code></pre>