title: Core Animation to flash score (UILabel)
body: <p>I am using core animation to flash intermediate scores (using UILabel) in a game on iPhone. I need it to repeat for certain count for a particular hit.
  <br>The score needs to be flashed for a particular count and then disappear.
  <br>So it should go from alpha 0.0 -> 1.0 -> 0.0</p>
  
  <p><p>Below is the code with which I am trying to achieve this.</p>
  
  <pre><code>[UIView beginAnimations:nil context:nil];
  [UIView setAnimationDuration:1.0];
  [UIView setAnimationRepeatCount:repeatCount];
  [UIView setAnimationRepeatAutoreverses:YES];
  playerScore.alpha = 1.0f;
  [UIView commitAnimations];  
  </code></pre>
  
  <p><p>The problem is that after the animation is over, the alpha returns back to 1.0</p>
  
  <p>Any suggestions?</p>