RevMob检查横幅是否已在iPhone中加载? [英] RevMob check Banner is loaded or not in iPhone?

查看:64
本文介绍了RevMob检查横幅是否已在iPhone中加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Revmob Framework来显示广告横幅,并且运行正常.

I am using Revmob Framework for displaying ad banners and it's working fine.

所以现在我的问题是如何以编程方式知道横幅是否已加载?

So now my Question is that how to know programmatically that banner is loaded or not?

就像我们正在使用iads一样,那么有一种方法"isBannerLoaded"来检查横幅广告是否已加载.

Like if we are using iads then there is a method "isBannerLoaded" to check banner is loaded or not.

实际上,我想设置横幅广告是加载还是未加载的框架.

Actually I want to set it's frame as banner is loaded or not loaded.

那么Revmob框​​架中是否有类似"isBannerLoaded"的方法?

So is there any method like "isBannerLoaded" in Revmob Framework?

推荐答案

您需要实现revMobDelegate并使用revmobAdDidReceive:

You need to implement the revMobDelegate and use 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/上找到RevMobAdsDelegate文档.ios-api/Protocols/RevMobAdsDelegate.html

这篇关于RevMob检查横幅是否已在iPhone中加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆