1
在iPhone上一切正常。在iPad上,iAds廣告看起來像損壞了。但是當它加載新的廣告(藍色,紅色等)時,看起來都很棒。我的錯誤在哪裏?爲什麼我的iAds廣告在iPad上損壞
// in applicationDidFinishLaunchingWithOptions
CGSize winSize = [[CCDirector sharedDirector] viewSize];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
adsBanner = [[ADBannerView alloc] initWithFrame:CGRectMake(0, winSize.height - 66, 768, 66)];
}
else
{
adsBanner = [[ADBannerView alloc] initWithFrame:CGRectMake(0, winSize.height - 50, 320, 50)];
}
// somewhere in AppDelegate
- (void)bannerViewDidLoadAd:(ADBannerView *)banner
{
[self.window.rootViewController.view addSubview:banner];
}
這裏是從形象與iPad損壞的廣告: