iOS 7 iAd cocos2d 已弃用
本文介绍了iOS 7 iAd cocos2d 已弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将 iAd 实现到我用 cocos2d 制作的 iOS 7 游戏中,我在 xcode 中添加了 iad 框架并进行了以下设置
Im trying to get iAd implemented to a iOS 7 game I made with cocos2d, I added iad framework in xcode and have the setup below
在@implementation中我已经设置了
in @implementation I have set
然后
我收到一个关于_adview"的错误,以及不推荐使用的currentContentSizeIdentifier",谁能帮我让它正常工作吗?我在网上查了一整天,没有任何代码可以工作.
I get an error about '_adview' and as well as 'currentContentSizeIdentifier' deprecated, can anyone help me get this working correctly? Ive checked online all day and couldnt get any of the code working.
提前致谢!
推荐答案
试试这个新代码:
这里是 Cocos2d 3.0 的新 iAd 代码.
这篇关于iOS 7 iAd cocos2d 已弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!