问题
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