[英]iAd banner views on top using canDisplayBannerAds = YES;
When I use iOS 7 iAds like this, they are placed at the bottom of the screen: 当我像这样使用iOS 7 iAd时,它们位于屏幕底部:
- (void)viewDidLoad {
self.canDisplayBannerAds = YES;
}
How can I place them at the top instead? 如何将它们放在顶部?
There is no way right now, if you are displaying iAds using the UIViewController additions. 如果您正在使用UIViewController附加信息显示iAd,则目前无法实现。 Have a look at the official Apple documentation to it here .
在这里查看Apple的官方文档 。
You can see that: 您可以看到:
Banner ads are displayed below the content.
标语广告显示在内容下方。
In order to place the ads above the content, you would have to create and ADBannerView
manually (programatically). 为了将广告放置在内容上方,您必须手动(以编程方式)创建
ADBannerView
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.