title: Unable to keep UIButton in selected state after TouchUpInside Event
body: <p>I have the need for an UIButton to maintain a pressed state. Basically, if a button is in a normal state, I want to touch the button, it highlight to its standard blue color and then stay blue after lifting my finger.
  I made the following UIAction and connected the buttons Touch Up Inside event to it.</p>
  
  <pre><code>-(IBAction) emergencyButtonPress:(id) sender
  {
      if(emergencyButton.highlighted)
      {
          emergencyButton.selected = NO;
          emergencyButton.highlighted = NO;
      }
      else
      {
          emergencyButton.selected = YES;
          emergencyButton.highlighted = YES;
      }
  }
  </code></pre>
  
  <p>But what happens, after I remove my finger, the button goes back to a white background. For a test I added a UISwitch and have it execute the same code:</p>
  
  <pre><code>-(IBAction) emergencySwitchClick:(id) sender
  {
      if(emergencyButton.highlighted)
      {
          emergencyButton.selected = NO;
          emergencyButton.highlighted = NO;
      }
      else
      {
          emergencyButton.selected = YES;
          emergencyButton.highlighted = YES;
      }
  }
  </code></pre>
  
  <p>In this case the button toggles to a highlighted and non-highlighted state as I would expect.</p>
  
  <p>Is there another event happening after the Touch Up Inside event that is resetting the state back to 'normal'? How do I maintain the highlighted state?</p>