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
Make sure you have imported the iAds Franework and included the import statement.