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

  • SEARCH
  • Home
  • 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 3283954
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:06:00+00:00 2026-05-17T20:06:00+00:00

I’d like to generate some revenue for my OpenGL based iPhone app w/ Apple’s

  • 0

I’d like to generate some revenue for my OpenGL based iPhone app w/ Apple’s iAds. Everything in the app is done w/ OpenGL including menus, buttons etc. How do I add iAds to my app?

More info: I’ve looked over sample code from Apple and I’m still stuck. Just fyi I currently don’t use any view controllers. All I have is a “Window”. I tried adding the bannerView to the window with the addSubView method but it just crashes the app. For some reason this works fine with the MailComposerView. Any help is appreciated!

More info: I created a subclass of UIViewController and put a BannerAd on it. Now the test advertisements show up. How do I make the rest of the UIView transparent such that the ads show up (with an alpha of 1.0) and I can also click on my buttons being created w/ OpenGL on the window below the UIViewController?

  • 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-17T20:06:01+00:00Added an answer on May 17, 2026 at 8:06 pm

    Are you able to add UIViewControllers to the window?

    If you can, create a UIViewController, which has an ADBannerView in it’s UIView (done through Interface Builder), with the appropriate delegate methods connected.

    Then add the UIViewController with a transparent background as a subview of the window.

    Good luck!


    Edit:

    What code were you using to add the ADBannerView programmatically?


    Regarding UITouch passthrough.

    Two methods.

    In the new UIViewController (set the UIView background to transparent using Interface Builder), you can override the UITouch hit test by throwing in this:

    - (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event {
        // UIView will be "transparent" for touch events if we return NO
        return CGRectContainsPoint([adbanner frame], point));
    }
    

    Use the above method. It handles the banner sliding out of view, view rotations, etc. When you return NO (not in the bounds of the bannerview), it will believe that the point is not within this UIViewController, and will then ask the following layer.

    The second, although easier method, has much room for error, so I will only describe it without posting code. Before you add the UIViewController’s view, alter the UIView’s frame such that it is only the size of the AdBannerView. This method does not account for rotation, banner sliding in/out. You need to handle these exceptions yourself, which makes this method more troublesome than it would seem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I
I would like to run a str_replace or preg_replace which looks for certain words
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.