title: Fading out an UIButton when touched
body: <p>I've got a Selected-state and a Normal-state for an UIButton that both are UIImages. When a button is touched, I'd like it to hit the selected-state and then animate back to the normal-state over the period of one second. I've set the following animation when the UIButton* btn is pressed, but it just switches right back to deselected state again. How should I go about achieving this?</p>
  
  <pre><code>[btn setSelected:YES];
  [UIView beginAnimations:nil context:NULL];
  [UIView setAnimationDuration:1.0f];
  [btn setSelected:NO];
  [UIView commitAnimations];
  </code></pre>
  
  <p>Cheers</p>
  
  <p>Nik</p>