开发者

How to implement the iAds in xcode 3.1.3 [duplicate]

开发者 https://www.devze.com 2023-03-25 22:29 出处:网络
This question already has answers here: How to work with iAds using xcode 3.1.3 (2 answers) Closed 9 years ago.
This question already has answers here: How to work with iAds using xcode 3.1.3 (2 answers) Closed 9 years ago.

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消