English 中文(简体)
现行抗核素确实存在于OS4.0和4.1。
原标题:does currentContentSizeIdentifier exist in iOS 4.0 and 4.1
  • 时间:2011-11-22 07:47:50
  •  标签:
  • iphone
  • ios4

我有以下法典。

[_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

最佳回答

我在来文方法典《AdBannerView.h》中找到了解决办法,并指出,“ADnerContentSizeIdentifierPortrait”只在Rs 4.2中提供。

问题回答

This is what the documentation says

The identifier placed in the currentContentSizeIdentifier property must be included in the set of identifiers stored in the requiredContentSizeIdentifiers property. This ensures that an advertisement displayed by the view can still be displayed after the view’s size changes. Setting a value not included in the requiredContentSizeIdentifiers property causes an exception to be thrown.

bold。 这是可能引起例外的原因。





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签