相关疑难解决方法(0)

我的admob横幅显示在顶部

我在我的应用程序中有一个admob横幅,我已经使用AdMob提供的文档实现了它,唯一不对的是它不会显示在屏幕的底部而是显示在顶部.现在我一直在寻找很长一段时间但我找不到如何改变它,我找不到任何一个解决这个问题的网.

有人知道如何解决这个问题吗?

谢谢

编辑

// Create a view of the standard size at the bottom of the screen.
// Available AdSize constants are explained in GADAdSize.h.
bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];

// Specify the ad's "unit identifier." This is your AdMob Publisher ID.
bannerView_.adUnitID = @"MYID";    
// Let the runtime know which UIViewController to restore after taking
// the user wherever the ad goes and add it to the view hierarchy.
bannerView_.rootViewController = self;
[self.view addSubview:bannerView_];

// Initiate a generic …
Run Code Online (Sandbox Code Playgroud)

objective-c admob ios

6
推荐指数
1
解决办法
6664
查看次数

标签 统计

admob ×1

ios ×1

objective-c ×1