我的应用程序已被iAds广告网络接受,但在我下载应用程序后,我看不到横幅广告出现,我必须等待一周但仍未看到。我不知道应用程序本身是否有问题,这是我用过的代码。
ViewController.h
#import <iAd/iAd.h>
@interface ViewController : UIViewController <ADBannerViewDelegate>
ViewController.m
#pragma mark iAd Delegate Methods
-(void)bannerViewDidLoadAd:(ADBannerView *)banner {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[banner setAlpha:1];
[UIView commitAnimations];
}
-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[banner setAlpha:0];
[UIView commitAnimations];
}