如何使用xcode 3.1.3使用iAds [英] How to work with iAds using xcode 3.1.3

查看:128
本文介绍了如何使用xcode 3.1.3使用iAds的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在使用Integrate iAds并制作应用程序的精简版本。我的问题是以前我正在使用iAds是xcode 4.1.3但是目前我使用的是xcode 3.1.3 iAds不支持我们的工作,请帮助我。

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;

此行错误: ADBannerContentSizeidentifier320x50'undeclared(首次使用此功能)

推荐答案

首先,即使在最新版本的iOS中, ADBannerContentSizeidentifier320x50 不再是首选常量。使用 ADBannerContentSizeIdentifierPortrait

First, even in the newest versions of iOS, ADBannerContentSizeidentifier320x50 is no longer the preferred constant. Use ADBannerContentSizeIdentifierPortrait instead.

但我认为真正的问题是Xcode 3.1.3是太旧了,无法包含iAd框架。它首先被包含在iOS4中,因此不会出现任何旧版本。因此,您的选择是:

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:


  • 使用较新版本的Xcode(和iOS)

  • Don'使用iAds。还有其他广告网络,例如AdMob仍然支持较旧的设备

这篇关于如何使用xcode 3.1.3使用iAds的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆