Apple 的 iAd 示例代码抛出错误
我正在尝试将 iAd 合并到我的应用程序中,在此过程中我浏览了 Apple 的示例代码。这是示例代码的链接。我已经从苹果的开发者网站下载了示例代码,并运行了相同的代码,而没有对 x 代码进行任何更改。此后我遇到了近 9 个错误,其中一些如下。
1 - 找不到 iAdinterstitialAdDelegate 的协议声明
2 - ADInterstitialAd 未声明等。
请注意,下载代码后我没有进行任何更改...在这方面的任何帮助将不胜感激
i am trying to incorporate iAd's into my app and in the process i'v gone through Apple's sample code.This is the link to the sample code. I have downloaded the sample code from apple's developer website and ran the same code without any changes in x-code. I encountered almost 9 errors after this,some of which are as follows.
1 - cannot find protocol declaration for iAdinterstitialAdDelegate
2 - ADInterstitialAd undeclared etc..
Please note that i haven't made any changes after downloading the code... Any help in this regard would really be appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否安装了 SDK 4.3(或更高版本)?
如果是,请检查您的项目/目标的基础 SDK,看看它是否设置为低于 4.3 的版本。
ADInterstitialAd
仅自 4.3 起可用Do you have the SDK 4.3 (or newer) installed?
If yes, check the base SDK of your project/target and see if it's set to something lower than 4.3.
ADInterstitialAd
is only available since 4.3