I have the following code for iAds.
[_iAdAdView setCurrentContentSizeIdentifier:ADBannerContentSizeIdentifierPortrait];
But this code throws "EXC_BAD_ACCESSS" in iOS 4.0 and iOS 4.1 devices.
The doc says that it is available from iOS 4.0 and later http://developer.apple.com/library/ios/#documentation/userexperience/Reference/ADBannerView_Ref/Reference/Reference.html
So why does the code crash for iOS 4.0 and iOS 4.1 and not for iOS 4.2 and later.
How do I work around to set the required settings for iOS 4.0 and iOS 4.1.
EDIT: I found the solution in the source code AdBannerView.h, and noticed that "ADBannerContentSizeIdentifierPortrait" is availabled only in iOS 4.2