开发者

iAd in iphone application "'ADBannerContentSizeIdentifier320x50' undeclared (first use in this function)"

开发者 https://www.devze.com 2023-01-18 10:07 出处:网络
I am using iAd 开发者_如何学JAVAin my iphone 4.0 application but after adding the ADBannerView on view and when i try to set the ADBannerView properties using below code :-

I am using iAd 开发者_如何学JAVAin my iphone 4.0 application but after adding the ADBannerView on view and when i try to set the ADBannerView properties using below code :-

adViewTemp.requiredContentSizes= [NSSet setWithObject:ADBannerContentSizeIdentifier320x50];

I get the below error message:-

error: 'ADBannerContentSizeIdentifier320x50' undeclared (first use in this function)

and i also check the sample provided by apple "iAdSuite" i get the same error in this sample. so can any one suggest how i solve this issue. Thanks


Make sure you have imported the iAds Franework and included the import statement.

#import <iAd/iAd.h>


Not just the header, add the Framework. In Frameworks on the left, cmd-click, choose Add Existing Frameworks, select the iAd framework.

0

精彩评论

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