0

我在 Xcode 中有一个没有内置广告的应用程序,我想添加 Chartboost。我下载了 SDK 但卡住了。我有最新的 chartboost SDK,当我将它添加到 xcode 时,我收到一个问题,提示无法初始化类型参数id<ChartboostDelegate' with an Ivalue of type 'AppController*

4

2 回答 2

2

看起来您需要将 chartboostDelegate 添加到 AppController 接口。它应该看起来像这样:

@interface AppController : NSObject <UIAccelerometerDelegate, UIAlertViewDelegate,
UITextFieldDelegate,UIApplicationDelegate, ChartboostDelegate>

您还应该在顶部有这个:#import "Chartboost.h"

于 2014-06-20T20:44:34.677 回答
0

只需将它放在 appDelegate.m 的顶部:

#import <Chartboost/Chartboost.h>
#import <Chartboost/CBNewsfeed.h>
#import "AppDelegate.h"

@interface AppDelegate () <ChartboostDelegate, CBNewsfeedDelegate>
@end

享受 !

于 2014-09-20T01:20:02.830 回答