title: iAd "no delegate or delegate does not implement didFailToReceiveAdWithError:"
body: <p>I ran my app with wifi disabled and I always get white space and this message in the debugger:</p>
  
  <p>ADBannerView: Unhandled error (no delegate or delegate does not implement didFailToReceiveAdWithError:): Error Domain=ADErrorDomain Code=5 "The operation couldn’t be completed. Banner view is visible but does not have content" UserInfo=0x9632d30 {ADInternalErrorCode=5, NSLocalizedFailureReason=Banner view is visible but does not have content}</p>
  
  <p>Please help me fix my code:
  .h</p>
  
  <pre><code>#import &lt;iAd/iAd.h&gt;
  @interface ViewController : UIViewController  &lt;GKAchievementViewControllerDelegate, GameCenterManagerDelegate , ADBannerViewDelegate&gt; {
  
  
  //iAD
  ADBannerView *banner;  
   }
  
  //iAD
  @property (nonatomic, assign) BOOL bannerIsVisible;
  @property (nonatomic, retain) IBOutlet ADBannerView *banner;  
  </code></pre>
  
  <p>.m</p>
  
  <pre><code>@synthesize  banner , bannerIsVisible;
  -(void)bannerViewDidLoadAd:(ADBannerView *)abanner {
  if (!self.bannerIsVisible) {
      [UIView beginAnimations:@"animatedAdBannerOn" context:NULL];
      banner.frame = CGRectOffset(banner.frame, 0.0, 50.0);
      [UIView commitAnimations];
      self.bannerIsVisible = YES;
  }}
  
  -(void)bannerView:(ADBannerView *)aBanner didFailToReceiveAdWithError:(NSError *)error {
  if (!self.bannerIsVisible) {
      [UIView beginAnimations:@"animatedAdBannerOff" context:NULL];
      banner.frame = CGRectOffset(banner.frame, 0.0, -50.0);
      [UIView commitAnimations];
      self.bannerIsVisible = NO;
  }
  
  }
  </code></pre>