Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何在xcode 3.1.3中实现iAds_Iphone_Ios4_Iphone Sdk 3.0_Iad_Iadstsuserex - Fatal编程技术网

Iphone 如何在xcode 3.1.3中实现iAds

Iphone 如何在xcode 3.1.3中实现iAds,iphone,ios4,iphone-sdk-3.0,iad,iadstsuserex,Iphone,Ios4,Iphone Sdk 3.0,Iad,Iadstsuserex,在iPhone程序员中,我目前正在使用xcode 3.1.3中的IAD,但在我的项目中出现了这种错误。请告诉我是否可以在xcode 3.1.3中的iAds中工作? 我的错误是 ADBannerView.h:88: error: expected ')' before 'ADBannerView' ADBannerView.h:97: error: expected ')' before 'ADBannerView' ADBannerView.h:

在iPhone程序员中,我目前正在使用xcode 3.1.3中的IAD,但在我的项目中出现了这种错误。请告诉我是否可以在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'

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

比如:

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

这本书已经一步一步地解释了这个问题

你可以在这里参考我的答案。Thanx…..谢谢你这是对甲烷的完全使用q这对我来说非常充分,但x代码3.1.3支持ID不是最好的方式请建议我。我不完全清楚你想问什么。我正在阅读,我认为Xcode3不支持iAd框架。你要么需要升级到Xcode4,要么使用另一个广告网络,如AdMob。谢谢你,我会听从你的建议