I am using iAds with banner views. The following code brings up the warning saying that the ad is obscured.
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
if (UIInterfaceOrientationIsPortrait(toInterfaceOrientation)) {
_bannerView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;//WARNING SHOWN WHEN THIS STATEMENT EXECUTES
} else {
_bannerView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
}
[self layoutAnimated:duration > 0.0];
}
Cannot figure out why the ad should be obscured when all I did was to change the interface orientation. Any clues appreciated.