RevMob 顶部横幅不会隐藏 iPhone SDK



在我的应用程序中,我使用RevMob sdk做广告。在第一视图中,广告横幅使用此代码显示。

[RevMobAds showBannerAdWithAppID:@"xxxxxxxxxxxxxx"];

在第二个视图中,我使用代码隐藏横幅。。

[RevMobAds hideBannerAdWithAppID:@"xxxxxxxxxxxxxxxxxxx"];

这个代码运行完美的横幅显示在第一个视图中,隐藏在另一个视图中。

我的问题是,当我编写代码以显示应用程序中的弹出窗口时,方法已被激活:

- (void)applicationDidBecomeActive:(UIApplication *)application
{
     [RevMobAds showPopupAdWithAppID:@"xxxxxxxxxxxxx"];
}

然后在第二个视图中bannerAdd不隐藏,它仍然会出现在第二个窗口中。

我不知道问题出在哪里。如果你有什么建议,请帮我…

提前谢谢。

您正在使用的方法已弃用,您应该使用:

[RevMobAds showBannerAd];
[RevMobAds hideBannerAd];
[RevMobAds showPopup];

您可以在api文档中看到更多信息:http://sdk.revmob.com/ios-api/index.html

最新更新