title: Hide iAd banner when no ads are available
body: <p>This is a Phonegap app. I am completely lost here, please help.
  I followed <a href="http://www.sitekickr.com/blog/phonegap-cordova-iad-integration/" rel="nofollow">this tutorial</a> to the t.</p>
  
  <p>Here is my MainViewController.m:</p>
  
  <pre><code>- (void)webViewDidFinishLoad:(UIWebView*)theWebView
  {
      adView = [[ADBannerView alloc] initWithFrame:CGRectZero];
  
  
      if([UIApplication sharedApplication].statusBarOrientation ==
         UIInterfaceOrientationPortrait ||
         [UIApplication sharedApplication].statusBarOrientation ==
         UIInterfaceOrientationPortraitUpsideDown) {
          adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;
      }
      else {
          adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
      }
  
  
      adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;
      CGRect adFrame = adView.frame;
      adFrame.origin.y = self.view.frame.size.height-adView.frame.size.height;
      adView.frame = adFrame;
      [self.view addSubview:adView];
  
      // Black base color for background matches the native apps
      theWebView.backgroundColor = [UIColor blackColor];
  
      return [super webViewDidFinishLoad:theWebView];
  }
  </code></pre>