views:

27

answers:

1

Hello,

I am using iAd in 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

+1  A: 

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

#import <iAd/iAd.h>
jkilbride
Ya i already have added this header. i also try the run sample provided by apple but the same error occur. so plz suggest any other problem... ?Thanks
Mtesh