本文介绍了目标C:ADBannerView更改大小和位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试为我的应用实现iAd横幅广告,但是我似乎无法正确执行。
I am trying to implement iAd Banners for my app but i can't seem to do it properly.
我正在尝试放置 ADBannerView
在我的应用中以纵向显示,仅出现在横向,但我不知道如何将其放置在中央。
I am trying to put an ADBannerView
in portrait size on my App that is only appearing on landscape but i don't know how to position it right in the center.
或者是否有可能在景观中调整 ADBannerView
的大小和位置?因为当我单击广告时,广告当然也是纵向的。
Or is there a possible way that i can resize and reposition an ADBannerView
in landscape? because the Ad is in portrait also (of course) when I clicked the Ad.
推荐答案
好!我已经找到答案了!
我使用此代码进行定位。
OK! I found an the answer already!I used this code for positioning.
adBannerView.frame = CGRectOffset(adBannerView.frame, 100, 0);
这篇关于目标C:ADBannerView更改大小和位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!