title: Proper use of finished: in setAnimationDidStopSelector:?
body: <p>I have some playing cards that flip over when you tap them. I want some stuff to happen after the flip animation is complete, so I have this in my <code>UIView</code> animation cycle:</p>
  
  <pre><code>[UIView setAnimationDidStopSelector:@selector(flipAnimationDone:finished:context:)];
  </code></pre>
  
  <p>...which calls this:</p>
  
  <pre><code>-(void)flipAnimationDone:(NSString *)animationID finished:(BOOL)finished context:(void *)context {
      if (finished == YES) {
          // other stuff here
      }
  }
  </code></pre>
  
  <p>Now, I need the <code>if (finished == YES)</code> bit in there, because otherwise the <code>other stuff</code> will fire <em>even if the user taps the card again mid-animation</em>, which is bad -- it needs to only happen if the flip animation completes completely :)</p>
  
  <p>Problem is, this isn't working. If I have the <code>if</code> in there, the <code>other stuff</code> doesn't ever fire, no matter what. If I leave the <code>if</code> out, the other stuff fires, but possibly at the wrong time.</p>
  
  <p>What am I doing wrong with the <code>finished</code> bit that is making it not work properly?</p>
  
  <p>Thanks!</p>