I try to integrate iAd to my App.
I have a class SwitchViewController (: UIViewController) which deals with all the custom ViewControllers & Views I have in this app.
When adding the View as below at the highest atIndex, I get an error:
ADBannerView: WARNING A banner view has an ad but may be obscured
However, if I do not insert all the other subviews - the iAd works fine. I can see it, but of course all the other views are gone.
Any Ideas?
Adding the subview by:
ADBannerView *tmpBannerView = [[ADBannerView alloc] initWithFrame:CGRectZero];
self.adView_iPad = tmpBannerView;
self.adView_iPad.frame = CGRectMake(0, 0, self.adView_iPad.frame.size.width, self.adView_iPad.frame.size.height);
self.adView_iPad.requiredContentSizeIdentifiers = [NSSet setWithObject:ADBannerContentSizeIdentifierPortrait];
self.adView_iPad.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;
self.adView_iPad.delegate = self;
[self.view insertSubview:self.adView_iPad atIndex:100];