我正在将Chartboost应用到cocos2d应用程序中,我收到以下错误:
Sending 'AppController *const __strong' to parameter of incompatible type 'id<ChartboostDelegate>'
代码来自Chartboost文档,如下所示:
[Chartboost startWithAppId:@"App ID" appSignature:@"App Signature" delegate:self];
不确定我错过了什么,也许是一个导入?我已经集成了“Chartboost.h”,并且我完全按照文档编写的方式遵循文档。有任何想法吗?谢谢!
答案 0 :(得分:0)
看起来AppController
不符合ChartboostDelegate
协议;即:
@interface AppDelegate <UIApplicationDelegate, ChartboostDelegate>