Search code examples
iosdelegateschartboost

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];

Solution

  • 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.