我在Xcode中有一个没有内置广告的应用程序,想要添加Chartboost。我下载了SDK,但是卡住了。我有最新的chartboost,当我将它添加到xcode中时,我得到一个问题,说无法初始化id<ChartboostDelegate' with an Ivalue of type 'AppController*类型的参数
发布于 2014-06-21 04:44:35
看起来您需要向AppController接口添加chartboostDelegate。它应该看起来像这样:
@interface AppController : NSObject <UIAccelerometerDelegate, UIAlertViewDelegate,
UITextFieldDelegate,UIApplicationDelegate, ChartboostDelegate>在顶部还应该有这样的内容:#import "Chartboost.h“
发布于 2014-09-20 09:20:03
只需将其放在appDelegate.m的顶部:
#import <Chartboost/Chartboost.h>
#import <Chartboost/CBNewsfeed.h>
#import "AppDelegate.h"
@interface AppDelegate () <ChartboostDelegate, CBNewsfeedDelegate>
@end享受吧!
https://stackoverflow.com/questions/24331203
复制相似问题