Ios 共享iAd横幅在关闭导航popover后卸载广告

Ios 共享iAd横幅在关闭导航popover后卸载广告,ios,objective-c,uiviewcontroller,uinavigationcontroller,iad,Ios,Objective C,Uiviewcontroller,Uinavigationcontroller,Iad,我看到了一些其他类似的问题,但能找到任何答案。。。我有一个共享的iAd横幅。问题是,当我将其加载到带有TableViewController的modally presented NavigationController中时,当我关闭TableViewController时,MainViewController中的广告横幅会丢失广告,我收到以下错误: ADBannerView:未处理的错误(没有委托或委托未实现didFailToReceiveAdWithError:):错误域=ADErrorDom

我看到了一些其他类似的问题,但能找到任何答案。。。我有一个共享的iAd横幅。问题是,当我将其加载到带有TableViewController的modally presented NavigationController中时,当我关闭TableViewController时,MainViewController中的广告横幅会丢失广告,我收到以下错误:

ADBannerView:未处理的错误(没有委托或委托未实现didFailToReceiveAdWithError:):错误域=ADErrorDomain代码=7“无法完成操作。Ad已从此横幅卸载”用户信息=0x5b60e283649{ADInternalErrorCode=7,NSLocalizedFailureReason=Ad已从此横幅中卸载,ADInternalErrorDomain=ADErrorDomain}

视图设置如下所示: MainViewController-->导航控制器-->TableViewController

在应用程序中的另一个点上,我用共享广告模式呈现ViewController,但我没有遇到此问题。(MainViewController-->ViewController)

以下是TableViewController中的代码:

h

任何提示都将不胜感激。
谢谢

问题是因为我使用了:

self.canDisplayBannerAds = true;
以及:

if (IPAD) {
    [_adView setFrame:CGRectMake(0, self.view.frame.size.height - 65, 320, 65)];
}
else {
    [_adView setFrame:CGRectMake(0, self.view.frame.size.height - 50, 320, 50)];
}
if (!_adView.bannerLoaded) {
    [_adView setAlpha:0];
}
[self.view addSubview:_adView];

因此,创建了2个广告栏实例。

因此,我在选定单元格的TableViewController之后添加了一个ViewController,并且ViewController上的共享广告横幅也会丢失广告。似乎当我离开TableViewController时,我收到了该错误。我是否未正确设置代理?因此,是否仍然存在失败接收到的错误uns当我返回MainViewController时,即使没有加载广告。。。
self.canDisplayBannerAds = true;
if (IPAD) {
    [_adView setFrame:CGRectMake(0, self.view.frame.size.height - 65, 320, 65)];
}
else {
    [_adView setFrame:CGRectMake(0, self.view.frame.size.height - 50, 320, 50)];
}
if (!_adView.bannerLoaded) {
    [_adView setAlpha:0];
}
[self.view addSubview:_adView];