RevMob检查横幅是否加载或不在iPhone?
我正在使用Revmob框架来显示广告横幅,它工作正常。
所以,现在我的问题是,如何以编程方式知道横幅是否加载?
就像我们正在使用iads那么有一个方法“isBannerLoaded”来检查横幅是否被加载。
其实我想设置它的框架作为横幅加载或不加载。
那么在Revmob框架中有没有像“isBannerLoaded”这样的方法?
您需要实现revMobDelegate并使用revmobAdDidReceive:
@interface MyAdClass : NSObject <RevMobAdsDelegate> ... @implementation MyAdClass -(void) prepare { ... ad = [[[RevMobAds session] bannerView] retain]; ad.delegate = self; [ad loadAd]; ... } - (void)revmobAdDidReceive { NSLog(@"ad received"); ... }
您可以在http://sdk.revmob.com/ios-api/Protocols/RevMobAdsDelegate.htmlfindRevMobAdsDelegate文档。