Objective C: ADBannerView Change Size and Position

2019-07-25 17:08发布

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条回答
Animai°情兽
2楼-- · 2019-07-25 17:39

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

adBannerView.frame = CGRectOffset(adBannerView.frame, 100, 0);
查看更多
登录 后发表回答