2012-07-21 57 views
0

在我的應用程序中,我使用RevMob sdk廣告。在第一個視圖廣告橫幅顯示使用此代碼。RevMob頂部的橫幅不隱藏iPhone SDK

[RevMobAds showBannerAdWithAppID:@"xxxxxxxxxxxxxx"]; 

而在第二視圖我是隱藏使用的代碼的旗幟..

[RevMobAds hideBannerAdWithAppID:@"xxxxxxxxxxxxxxxxxxx"]; 

此代碼運行完全橫幅顯示在第一視圖和隱藏在另一視圖。

我的問題是這樣的,當我寫代碼來顯示彈出在appilicationdidbecomeactivemethod:

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

然後在第二視圖bannerAdd是不是隱藏它仍然會出現在第二個觀點。

我不知道是什麼問題。如果你有任何建議PLZ幫我...

在此先感謝。

回答

1

您正在使用已過時的方法,你應該使用:

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

你可以看到更多的API文檔上: http://sdk.revmob.com/ios-api/index.html