Failed to get call to iOS 7 iAd delegate methods

If I create a new project of the same kind in Xcode 5.0.2, add the iAd Framework by implementing the ADInterstitialAdDelegate in ViewController.h

#import <UIKit/UIKit.h> #import <iAd/iAd.h> @interface ViewController : UIViewController <ADInterstitialAdDelegate> @end 

and delegate methods in ViewController.m

 -(void)viewDidLoad { [super viewDidLoad]; [ self performSelector:@selector(onDelay) withObject:nil afterDelay:2 ]; } -(void)onDelay { self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual; [ self requestInterstitialAdPresentation ]; } -(void)interstitialAd:(ADInterstitialAd *)interstitialAd didFailWithError:(NSError *)error { NSLog(@"interstitialAd didFailWithError"); } -(void)interstitialAdDidLoad:(ADInterstitialAd *)interstitialAd { NSLog(@"interstitialAdDidLoad"); } 

none of the ADInterstitialAdDelegate methods are called . I am also experiencing some problems using the old implementation in iOS 6 and below.

 interstitial = [[ADInterstitialAd alloc] init]; interstitial.delegate = self; [ interstitial presentFromViewController:self ]; 

Only

 -(void)interstitialAdDidLoad:(ADInterstitialAd *)interstitialAd 

called then but no

 - (void)interstitialAdDidUnload:(ADInterstitialAd *)interstitialAd 

after closing the ad. Does anyone remember the same problems or know what is going on here?

+7
delegates iad interstitial
source share

No one has answered this question yet.

See similar questions:

4
Unable to call iAd delegate cross-domain methods

or similar:

661
How to create delegates in Objective-C?
633
Pass method as parameter using C #
337
When and why use delegates?
278
What are the differences between delegates and events?
185
Java representatives?
4
Unable to call iAd delegate cross-domain methods
2
xcode 4.5 Unpacking iOS and UITableView delegate confusion
one
When are these iAdD delegate methods called?
one
Passing data back: delegate method not called
0
How to call a method in ViewController from SKScene

All Articles