title: UIButton state selected
body: <p>I've seen a lot of info on changing the button image for selected but being a new I'm having a bit of trouble implementing a simpler version of it.</p>
  
  <p>When the button is pressed it goes dark and I would like it to stay that way once it's been selected. So there are a few questions.</p>
  
  <p>Do I create IBOutlet for the button and then and IBAction to change the state with something like button.state = SELECTED.</p>
  
  <p>Sorry for the complete lack of any code to look at.</p>
  
  <p>Edit: (id)sender is the button object right?</p>
  
  <pre><code>-(IBAction)journalEntryViewControllerClick: (id)sender
  {
      UIButton *button = (id)sender;
  
      [button setSelected:YES];   
  
  }
  </code></pre>