2011-04-19 65 views
0


我正在创建应用程序以在底部显示广告。 我已经完成了满足广告的所有要求。InMobi与AdWhirl 3.0的集成

当我运行我的应用程序时,我在控制台中收到以下消息
InMobi:错误!必须实施rootViewControllerForAd方法。无法投放InMobi广告。 2011-04-19 10:35:42.177 Real Scale高精度[393:207] InMobi:错误!必须实施rootViewControllerForAd方法。无法投放InMobi广告。

有什么问题我不知道。
为的InMobi广告我只是在我的viewController.m仅添加了InMobiAdView.h头一样,我完全可以做到的所有的AdWhirl方法等

回答

1

这是因为在InMobiAdDelegate.h这种方法被标记为@required。所以要解决这个在AdWhirlAdapterInMobi.m添加方法

- (UIViewController *)rootViewControllerForAd { 
    return [adWhirlDelegate viewControllerForPresentingModalView]; 
} 

这对我有效。