title: Canceling an UIView Animation Block
body: <p>The code below shows an animation of a label which contains a status message for the user. If an event happens the label is showing prompt and is slowly disappearing via uiview animation block.</p>
  
  <pre><code>- (void)showStatusOnLabelWithString:(NSString *)statusMessage
  {   
      // [self.view.layer removeAllAnimations]; // not working
      [labelStatus.layer removeAllAnimations]; // not working, too
  
      [labelStatus setText:statusMessage];
      [labelStatus setHidden:NO];
      [labelStatus setAlpha:1.0];
  
      [UIView animateWithDuration:5.0 animations:^
       {
           [labelStatus setAlpha:0.0];
  
       } completion:^(BOOL finished) 
       {
           [labelStatus setHidden:YES];
           [labelStatus setAlpha:1.0];
       }];
  }
  </code></pre>
  
  <p>If there is another event in the following 5s after the first the label should animate again, so I removed the previous animation with <code>[self.view.layer removeAllAnimations]</code> (thats what I thought). 
  But the label just completely disappear and the next 5s the label is invisible again.</p>
  
  <p>If I (or the user) wait(s) the 5s everything is working properly.</p>
  
  <p>Why isn't this working?</p>
  
  <p>Kind Regards, 
  $h@rky</p>