1

我正在评估将 AdMob 插页式广告添加到我的 iOS 应用中的可能性。我不确定的一件事是我们是否可以以动画方式呈现插页式广告。从文档看来,我们可以显示插页式广告的唯一方法是使用

presentFromRootViewController:(UIViewController *)rootViewController

方法,因为 GADInterstitial 不是视图而是 NSObject。有什么方法可以在动画中显示它,比如滑动/滚动?

谢谢!

4

1 回答 1

0

在委托函数中,使用它来显示带动画的插页式广告:

- (void)interstitialDidReceiveAd:(GADInterstitial *)interstitial
{
    [interstitial presentFromRootViewController:self];
}
于 2014-04-01T12:49:39.820 回答