I added the ADBannerView to a view and when I load the app I get the following message:
ADBannerView: WARNING A banner view (0x7a023c0) has an ad but may be obscured. Th
I had code like this:
if (animate)
{
[UIView animateWithDuration:0.5 animations:^{
self.adBannerView.frame = adBannerFrame;
self.otherViewFrame.frame = otherViewFrame;
}
];
}
else
{
self.adBannerView.frame = adBannerFrame;
self.otherViewFrame.frame = otherViewFrame;
}
and after some experimenting, I found that the order of the initializations should be reversed in both if and else legs.
self.otherViewFrame.frame = otherViewFrame;
self.adBannerView.frame = adBannerFrame;
So the idea was not to let another view cover the AdBannerView, even for a few microseconds.