user3760767
user3760767

Reputation: 11

Chartboost Integration

I have an app in Xcode that has no ads built in and want to add Chartboost. I downloaded the SDK but am stuck. I have the latest chartboost SDK and when I add it to xcode, I get an issue that says Cannot initialize a parameter of type id<ChartboostDelegate' with an Ivalue of type 'AppController*

Upvotes: 0

Views: 460

Answers (2)

ababab5
ababab5

Reputation: 284

Just put it on the top of you appDelegate.m :

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

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

Enjoy !

Upvotes: 0

Craig at Chartboost
Craig at Chartboost

Reputation: 121

It looks like you need to add chartboostDelegate to the AppController interface. It should look something like this:

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

You should also have this at the top: #import "Chartboost.h"

Upvotes: 2

Related Questions