如何使用 xcode 3.1.3 处理 iAd
目前我正在集成 iAds 并制作该应用程序的精简版。我的问题是以前我使用的 iAds 是 xcode 4.1.3,但目前我使用的是 xcode 3.1.3 iAds 不支持我们所做的,请帮助我。
NSString *contentSize = UIInterfaceOrientationIsPortrait(self.interfaceOrientation) ? ADBannerContentSizeIdentifier320x50 : ADBannerContentSizeIdentifier480x32;
此行错误:ADBannerContentSizeidentifier320x50'未声明(在此函数中首次使用)
Presently I am Working With Integrate iAds and make a lite version of the app. My Problem is Previously I am working with iAds is xcode 4.1.3 but Presently I was used xcode 3.1.3 iAds are not supporting what we do please help me.
NSString *contentSize = UIInterfaceOrientationIsPortrait(self.interfaceOrientation) ? ADBannerContentSizeIdentifier320x50 : ADBannerContentSizeIdentifier480x32;
This line error: ADBannerContentSizeidentifier320x50'undeclared(first use in this function)
首先,即使在最新版本的 iOS 中,
ADBannerContentSizeidentifier320x50
也不再是首选常量。使用ADBannerContentSizeIdentifierPortrait
改为。但我认为真正的问题是 Xcode 3.1.3 太旧,无法包含 iAd 框架。它首先包含在 iOS4 中,因此不会出现在更旧的版本中。因此,您的选择是:
First, even in the newest versions of iOS,
ADBannerContentSizeidentifier320x50
is no longer the preferred constant. UseADBannerContentSizeIdentifierPortrait
instead.But I think the real issue here is that Xcode 3.1.3 is too old to include the iAd framework. It was first included in iOS4 and so won't be there in anything older. Your choices therefore are: