iAd not appear after app released to AppStore

| | August 18, 2015

My app “iCals” uploaded to AppStore and the iAd not appear.
In simulator and with TestFlight written in banner “You connected to iAd” but if I download the app from AppStore is not appear the banner.

@synthesize = adBanner = adBanner;
- (void)viewDidLoad

[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

// Make self the delegate of the ad banner.
adBanner.delegate = self;

// Initially hide the ad banner.
self.adBanner.alpha = 0.0;


bannerViewDidLoadAd is not called

| | August 18, 2015

iAD delegate never calls, although I set it in viewWillAppear.

in AppDelegate

var UIiAd: ADBannerView = ADBannerView()

in ViewController

var UIiAd: ADBannerView = ADBannerView()

 func appdelegate() -> AppDelegate {
    return UIApplication.sharedApplication().delegate as! AppDelegate

override func viewWillAppear(animated: Bool) {
    var SH = UIScreen.mainScreen().bounds.height

    UIiAd.delegate = self
    UIiAd = self.appdelegate().UIiAd
    UIiAd.frame = CGRectMake(0, SH - 50, 0, 0)

func bannerViewDidLoadAd(banner: ADBannerView!) {
    UIView.beginAnimations(nil, context: nil)
    UIiAd.alpha = 0.5

The funny think that adBanner actually show test advertising.

UDP: I did understand what was wrong. To display iAd, all you need is to set self.canDisplayBannerAds = true, thats it. But you don’t have any access to delegates of banned that was created.

When debugging iAd goes green on a real device

| | August 18, 2015

The green AdI am currently testing iAd on my Iphone 5s and everything works fine, beside off the fact that the Add is green. It pops up after some seconds and NSLog says Ad was received, but it’s green in The simulator it works fine but on the iphone it’s green… What can i do? Thanks in advance! Julian

Performing Segue between container views

| | August 18, 2015

I’ve searched here & on Apple’s developer forums, but can’t find anything to resolve this problem:
I’m developing for the iPhone and have a table view embedded in a ContainerView, to enable me to display iAds as per Apple’s sample code. When a user selects a row I want to segue to a new table view, also embedded in a ContainerView, so that the second view continues to display ads.

When selecting a row in the first table, performSegueWithIdentifier is called in didSelectRowAtIndexPath and the viewDidLoad method of the second view executes, but the view does not appear & CPU goes to 100%.

Any help in resolving this would be appreciated.

iOS: Is there a way to programmatically reset AirPlay back to the iPad?

| | August 18, 2015

I have an iOS app that plays video using the AVPlayer, and I want to enable AirPlay. Using information from here: https://developer.apple.com/library/iad/documentation/AudioVideo/Conceptual/AirPlayGuide/EnrichYourAppforAirPlay/EnrichYourAppforAirPlay.html, I successfully added the AirPlay icon:

MPVolumeView *volumeView = [ [MPVolumeView alloc] init] ;
[volumeView setShowsVolumeSlider:NO];
[volumeView sizeToFit];
[view addSubview:volumeView];

And it works. When the video is playing, I can tap the icon, select my Apple TV, the icon turns blue, and the video plays through the Apple TV.

Now here’s my question: If I simply exit from the player portion of my app, AirPlay seems to remain set to the Apple TV. If I play another video, even though my app creates a new instance of AVPlayer, the icon is blue and the video plays through the Apple TV. Is there a way that I can programmatically reset AirPlay back to the IPad when the user exits from the player portion of my app? I don’t see anything on MPVolumeView that looks like it would do that.

How to add BannerViewController

| | August 18, 2015

I have a project built off the classic Master Detail template provided out of the box by Xcode. I am trying to incorporate the iAdSuite BannerViewController with out much success.

I have added BannerViewController.m & .h to my project, but I’m struggling to get my app to invoke the viewDidLoad in BannerViewController. I’ve been through the TabbedBanner sample pretty extensively and still don’t see where BannerViewController is “tied” in.

Tried adding BannerViewController as a child view controller

BannerViewController *vbc = [[BannerViewController alloc] init];
[navigationController addChildViewController:vbc];

This code produces a tragic ending.

Any insight into this sample code or hints where to find additional info on using a shared banner would be appreciated.

iAd ADBannerView using Auto Layout has multiple appearances

| | August 18, 2015

I am trying to add an ADBannerView to my application.

When there is no ad to show my label is visible because the ADBannerView is set to be hidden:

enter image description here

Then when the ADBannerView does load it SHOULD look like this:

enter image description here

Except sometimes the first time you load the app, and some other times in which I haven’t found any regularity yet, the ADBannerView appears like this:

enter image description here

All the content above the ADBannerView is pushed upwards.

My question is, is there any way to control the way the ADBannerView behaves? Either way it does now is fine to me, as long as I know for sure that this is the way it is going to be viewed everytime.

The constraints are rather simple:

– bottom 0
– left 0
– right 0
– height 50

– same as adBanner

start button:
– bottom 60
– left, right 10
– height 30

iOS Interstitial iAd does not close

| | August 18, 2015

my iAd-integration does not work correctly. I tried to implement fullscreen ads. The ad appears but when I press the “X”-button to close, it does not close.

Maybe you can find an Issue in my code? I don’t know what to change and have invested a lot of time in fixing the issue without success.


it works with [interstitial presentFromViewController:self]; but not with [interstitial presentInView:self.view];
The problem is that presentFromViewController is deprecated with iOS 7…so how do I have to change it?

- (void)viewDidLoad
        requestingAd = NO;
        [self showFullScreenAd];


//Interstitial iAd
    -(void)showFullScreenAd {
        //Check if already requesting ad
        if (requestingAd == NO) {
            interstitial = [[ADInterstitialAd alloc] init];
            interstitial.delegate = self;
            self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;
            [self requestInterstitialAdPresentation];
            requestingAd = YES;
        }//end if

    -(void)interstitialAd:(ADInterstitialAd *)interstitialAd didFailWithError:(NSError *)error {
        interstitial = nil;
        requestingAd = NO;
        NSLog(@"interstitialAd didFailWithERROR");
        NSLog(@"%@", error);

    -(void)interstitialAdDidLoad:(ADInterstitialAd *)interstitialAd {
        if (interstitialAd != nil && interstitial != nil && requestingAd == YES) {
    [interstitial presentInView:self.view];
        }//end if

    -(void)interstitialAdDidUnload:(ADInterstitialAd *)interstitialAd {
        interstitial = nil;
        requestingAd = NO;

    -(void)interstitialAdActionDidFinish:(ADInterstitialAd *)interstitialAd {
        interstitial = nil;
        requestingAd = NO;

Thank you in advance :)

Are Interstitial ads broken? iOS 8?

| | August 18, 2015

I created a dummy sprite kit app.
I then added the most rudimentary interstitial iAd support.

In AppDelegate.m/didFinishLaunchingWithOptions

[UIViewController prepareInterstitialAds];

In ViewController.m/ViewDidLoad

self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;

Then after presenting the scene, I added a continuous loop to invoke ads.

[scene runAction:[SKAction repeatActionForever:
    [SKAction sequence:@[[SKAction waitForDuration:3.0],
    [SKAction runBlock:^
            if( !self.isPresentingFullScreenAd )
                [super requestInterstitialAdPresentation];

It doesn’t work what’s wrong?

Live app not showing iAd on development device

| | August 18, 2015

I’ve added my iPhone to my development devices list. I’ve tested iAd on the simulator and device while in development and a test iAd banner is successfully shown. But, when I download my released app from the App Store it does not show live ads.

Are live ads not shown on development devices?

Page 1 of 12123456789101112