Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6751665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:57:14+00:00 2026-05-26T12:57:14+00:00

I try to integrate iAd to my App. I have a class SwitchViewController (:

  • 0

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];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:57:15+00:00Added an answer on May 26, 2026 at 12:57 pm

    You always want to make sure the ADBannerView is the topmost view in the hierarchy to avoid this warning. If any view overlaps it, even if it has transparency, you’ll get this warning.

    You can simply do something like this.

    ADBannerView *adView = <create the view>;
    [superView addSubview:adView];
    [superView bringSubviewToFront:adView];
    

    UPDATE:

    When setting the view size, it is best to query the class for the size.

    + (CGSize)sizeFromBannerContentSizeIdentifier:(NSString *)contentSizeIdentifier
    

    This will return the height and width that you should use. So set the frame like this:

    CGSize size = [ADBannerView sizeFromBannerContentSizeIdentifier: ADBannerContentSizeIdentifierPortrait];
    self.adView_iPad.frame = CGRectMake(0, 0, size.width, size.height);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying all of yesterday to try and integrate a SQL Database with
I try to integrate django-ifs like a django app without using buildout. Now I
I want to try and integrate my rdf data which is in an .rdf
I am try to create Phonegap project in which i need to integrate ASIHTTPRequest
I'm trying to integrate posting to one's wall from within my app.i try this
All I am try to integrate twitter in Iphone application As twiiter not allow
I have been working three days straight to try and integrate ads into my
I try to integrate paypal with Android app using sandbox. I'm getting successfully longing
I got an array which I iterate over and try to create a variable.
Try as I might I cannot get my head around what the IteratorIterator class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.