Objective C: ADBannerView Change Size and Position

2019-07-25 17:56发布

问题:

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);