我在ViewWillAppear和ViewWillDisappear上分别创建和删除了ADBannerView,即使在切换到另一个没有创建ADBannerView的视图后,我仍然看到大量的警告。这是什么意思?我该如何解决?
"Too many active banners, Creation of new banners will be throttled."
答案 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];
}