2011-08-04 34 views
-1

在iPhone程序員目前我正在使用xcode 3.1.3中的iAds,但在我的項目中發生了這種錯誤。請告訴我可以在xcode 3.1.3的iAds中工作? 我的錯誤是如何在xcode中實現iAd 3.1.3

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

你可以參考我的答案在這裏。 http://stackoverflow.com/questions/6927209/how-to-work-with-iads-using-x-code-3-1-3/6927247#6927247 感謝名單.... – SJS

回答

1

確保您有如果不能顯示的廣告錯誤HANDELING。如果你沒有這個可能會導致這樣的崩潰。

類似:

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

謝謝你這是用我全部的 – Durga

+0

謝謝q它對我來說很全用但是x代碼3.1.3是支持id不是什麼是最好的方式請給我建議。 – Durga

+0

我不完全清楚你想問什麼。我正在閱讀,我不認爲Xcode3支持iAd框架。 – BlueMeanie