title: Check if UIView is currently animating
body: <p>I have two animations running; show search bar and show banner. Both those animations are resizing the same view and if they are running on the same time (Which they are) the latest animation will cancel the resize. Is there anyway to check if UIView is currently animating and then standby for animation?</p>
  
  <p>I'm pretty sure I'm not using CAAnimations, since Cocoa not is detecting such class.</p>
  
  <p>This one is running when an ad was received. Unfortunately, that is the same time as ShowSearch is running.</p>
  
  <pre><code>- (void)adViewDidReceiveAd:(GADBannerView *)bannerView {
      if (!hasloaded) {
          [UIView beginAnimations:nil context:nil];
          [UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
          [UIView setAnimationDuration: 1.0];
  
          [bannerView_ setFrame:CGRectMake(0, self.view.frame.size.height, bannerView_.frame.size.width, bannerView_.frame.size.height)];
  
          // move and grow
          [bannerView_ setFrame:CGRectMake(0, self.view.frame.size.height-50, bannerView_.frame.size.width, bannerView_.frame.size.height)];
          // set original position
          [UIT setFrame:CGRectMake(UIT.frame.origin.x, UIT.frame.origin.y, UIT.frame.size.width, UIT.frame.size.height)];
  
          // move and grow
          [UIT setFrame:CGRectMake(UIT.frame.origin.x, UIT.frame.origin.y, UIT.frame.size.width, UIT.frame.size.height-50)];
  
          [UIView commitAnimations];
          hasloaded = true;
      }
  }
  </code></pre>