In iPhone Programmer presently I am working with iAds in xcode 3.1.3 but in my Project this kind of errors are occurred. please tell me it is possible to work in iAds in xcode 3.1.3? My error is
ADBannerView.h:88: error: expected ')' befor开发者_JAVA技巧e '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'
Make sure you have error handeling for if an ad cannot be displayed. If you dont have this it may cause a crash like this.
something like:
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
if (self.bannerIsVisible) {
/* set banner not visible here
}
This one has explained the step by step implementation of iAds...
精彩评论