【问题标题】:How to implement the iAds in xcode 3.1.3 [duplicate]如何在 xcode 3.1.3 中实现 iAds [重复]
【发布时间】:2011-08-04 04:23:46
【问题描述】:

目前我在 iPhone Programmer 中使用 xcode 3.1.3 中的 iAds,但在我的项目中发生了这种错误。请告诉我可以在 xcode 3.1.3 中的 iAds 中工作吗? 我的错误是

ADBannerView.h:88: error: expected ')' before 'ADBannerView'
             ADBannerView.h:97: error: expected ')' before 'ADBannerView'
            ADBannerView.h:102: error: expected ')' before 'ADBannerView'
            ADBannerView.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__AVAILABILITY_INTERNAL__IPHONE_4_0_DEP__IPHONE_4_2'
             ADBannerView.h:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__AVAILABILITY_INTERNAL__IPHONE_4_0_DEP__IPHONE_4_2'
             ADBannerView.h:112: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__AVAILABILITY_INTERNAL__IPHONE_4_2'
             ADBannerView.h:113: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__AVAILABILITY_INTERNAL__IPHONE_4_2'
    /Users/girishramdas/Desktop/iAds sample/iAdSuite/BasicAdBanner/Classes/TextViewController.h:59: error: expected specifier-qualifier-list before 'ADBannerView'

【问题讨论】:

标签: iphone ios4 iphone-sdk-3.0 iad iadstsuserex


【解决方案1】:

如果广告无法显示,请确保您有错误处理。如果你没有这个,它可能会导致这样的崩溃。

类似:

    - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
        if (self.bannerIsVisible) {
             /* set banner not visible here
        }

【讨论】:

  • 谢谢你,这对我来说已经用完了
  • 谢谢 q 这对我来说非常有用,但 x 代码 3.1.3 支持 id 不是最好的方法,请建议我。
  • 我不完全清楚你想问什么。我正在阅读,我认为 Xcode3 不支持 iAd 框架。
  • 您需要升级到 Xcode4 或使用 AdMob 等其他广告网络。
  • 谢谢 BlueMeanie 我会听从你的建议
【解决方案2】:

这个已经一步步讲解了implementation of iAds...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多