目前在iPhone程序员中我正在使用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'
答案 0 :(得分:1)
如果无法显示广告,请确保您有错误处理方式。如果你没有这个,可能会导致像这样的崩溃。
类似的东西:
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
if (self.bannerIsVisible) {
/* set banner not visible here
}
答案 1 :(得分:0)
这个已经逐步解释了implementation of iAds...