amit
amit

Reputation: 1413

iOS Change Chartboost delegate

How do I change the Chartboost delegate. It appears it can only be set once, at init. What if I want to change it after init? Do I just init again?

[Chartboost startWithAppId:@"APP_ID"
              appSignature:@"APP_SIGN"
                  delegate:myDelegate];

Upvotes: 1

Views: 237

Answers (2)

Crashalot
Crashalot

Reputation: 34513

You can now call Chartboost.setDelegate(self)

Upvotes: 0

amit
amit

Reputation: 1413

Call with StartWithAppId() as needed, and according to Chartboost support, this does not have adverse effects (at least in Chartboost v5.1.3). Creating a singleton to serve as the delegate and having that proxy the listener methods is a good option also.

Upvotes: 1

Related Questions