![](/img/trans.png)
[英]How to place admob banner at bottom of screen in iOS retina and non retina
[英]Position smart (dynamic) Admob banner to bottom of iOS screen?
我正在創建一個像這樣的智能(動態)Admob橫幅
bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeSmartBannerPortrait origin:CGPointMake(0,0)];
但是,如何獲得智能的adMob標語? 我需要知道橫幅的高度,以便能夠確定y坐標應位於底部的哪個位置,但是如果它是智能(動態)尺寸的橫幅,我不知道如何處理?
我想出這是否可以幫助任何人
bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeSmartBannerPortrait origin:CGPointMake(0,0)];
[bannerView setFrame:CGRectMake(0,Sparrow.stage.height-bannerView.frame.size.height, bannerView.frame.size.width, bannerView.frame.size.height)];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.