iAd“太多活跃的横幅,新横幅的制作将受到限制。”警告

时间:2012-01-06 21:50:32

标签: iphone iad

我在ViewWillAppear和ViewWillDisappear上分别创建和删除了ADBannerView,即使在切换到另一个没有创建ADBannerView的视图后,我仍然看到大量的警告。这是什么意思?我该如何解决?

"Too many active banners, Creation of new banners will be throttled."

1 个答案:

答案 0 :(得分:0)

尝试使用此

-(void)viewDidLoad
{
    [super viewDidLoad];
    adView = [[AdBannerView alloc]initWithFrame:GCResctMake(0,0,320,50)];
    adView.requiredContentSizeIdentifiers = [NSSet setWithObject:ADBannerContentSizeIdentifier320x50];
    adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;
    adView.delegate=self;
    bannerIsVisible=NO;
    adView.hidden = YES;
    [adContainerView addSubview:adView];
    [adView release];
}