Objective C: ADBannerView Change Size and Position

混江龙づ霸主 提交于 2019-12-11 06:09:40

问题


I am trying to implement iAd Banners for my app but i can't seem to do it properly.

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.

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.


回答1:


OK! I found an the answer already! I used this code for positioning.

adBannerView.frame = CGRectOffset(adBannerView.frame, 100, 0);


来源:https://stackoverflow.com/questions/11927195/objective-c-adbannerview-change-size-and-position

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!