title: How can I animate a UIView Container to decrease its height?
body: <p>I am looking to animate the size of my UIView Container at the same time my ad appears at the bottom. I have the ad slide up from the bottom of the screen when it's ready. I want my UIView container to decrease that same amount of size as the ad slides up. </p>
  
  <p>I created an outlet property for my container view within the top level UIViewController that it is embedded in. </p>
  
  <p>My ad animation code:</p>
  
  <pre><code>- (void)adViewDidReceiveAd:(GADBannerView *)view
  {
      NSLog(@"Received Ad");
  
      [UIView animateWithDuration:1.0 animations:^ {
          view.frame = CGRectMake(0.0,
                                  self.view.frame.size.height - view.frame.size.height,
                                  view.frame.size.width,
                                  view.frame.size.height);
  
  
  
          // This is where I think I would need to animate the container view.
  
      }];
  }
  </code></pre>
  
  <p>How can I decrease the size of my container view to match that of the ad? I need the container to stay in the same spot and everything, but some height needs to be taken off of the bottom. </p>