【发布时间】:2014-04-17 16:44:49
【问题描述】:
AppDelegate.m中有查看banner的代码:
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone && [UIScreen mainScreen].bounds.size.height == 960.){
bannerView = [[ADBannerView alloc]initWithFrame:
CGRectMake(0, 25, 320, 80)];
}
else{
bannerView = [[ADBannerView alloc]initWithFrame:
CGRectMake(0, 25, 320, 80)];
// Optional to set background color to clear color
[bannerView setBackgroundColor:[UIColor clearColor]];
[viewController.view addSubview: bannerView];
}
如何在 GameLayerView 上隐藏横幅?然后在游戏结束后重新展示它。我应该在 GameLayer.m 中写一些东西吗?
【问题讨论】:
标签: ios cocos2d-iphone iad appdelegate banner