我有以下法典。
[_iAdAdView setCurrentContentSizeIdentifier:ADBannerContentSizeIdentifierPortrait];
但该法典将“EXC_BAD_ACCESSS”投放到S.4.0和OS 4.1装置中。
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.
我如何围绕S-4.0和OS 4.1确定必要的环境。
EDIT: I found the solution in the source code AdBannerView.h, and noticed that "ADBannerContentSizeIdentifierPortrait" is availabled only in iOS 4.2