我正在製作一個標籤欄應用程序,我要在每個視圖/選項卡中實現一個iAd欄。標籤欄應用程序中的iAd橫幅
我目前做的方式是這行代碼:
self.canDisplayBannerAds = true
,並補充說,每一個ViewController
但問題是,當我去到另一個選項卡,我得到這個信息關於我的其他視圖的日誌:
2015-07-12 22:19:07.746 TabiAd[17401:1455398] [AppDeveloper] 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=0x7f91fc913700 {ADInternalErrorCode=7, NSLocalizedFailureReason=Ad was unloaded from this banner, ADInternalErrorDomain=ADErrorDomain}
有沒有更好的方式顯示廣告?