2014-06-20 14 views
0

我有一個應用程序在Xcode沒有內置廣告,並希望添加Chartboost。我下載了SDK但被卡住了。我有最新的chartboost SDK,當我將它添加到xcode時,我得到一個問題,說無法初始化類型的參數id<ChartboostDelegate' with an Ivalue of type 'AppController*Chartboost集成

回答

2

看起來您需要將chartboostDelegate添加到AppController接口。 它應該是這個樣子:

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

你也應該有這樣的頂部:#進口「Chartboost.h」

0

只需把它放在你的頂部appDelegate.m:

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

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

享受!