I'm implementing a new app for iOS7+. The integration with iAd banners seems easy with canDisplayBannerAds in the views i want to display a banner. However i'm getting this errors in Xcode log:
ADBannerView: Unhandled error (no delegate or delegate does not implement didFailToReceiveAdWithError:): Error Domain=ADErrorDomain Code=7 "The operation couldn’t be completed. Ad was unloaded from this banner" UserInfo=0xc07bcc0 {ADInternalErrorCode=7, ADInternalErrorDomain=ADErrorDomain, NSLocalizedFailureReason=Ad was unloaded from this banner}
Since in iOS7 iAd framework you only need to set canDisplayBannerAds = YES, is it necessary to continue doing Banner.delegate = self or implementing didFailToReceiveAdWithError?
Thanks in advance
bannerView:didFailToReceiveAdWithError:is optional inADBannerViewDelegateprotocol (located in ADBannerView.h).So all you need to do is set the Banner delegate and it should work well. Concerning
canDisplayBannerAdsproperty, the Apple Documentations states that it is:So I don't think canDisplayBannerAds has anything to do with delegation. You should check that page from the Apple Documentation.