简体   繁体   中英

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

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.

您现在可以调用Chartboost.setDelegate(self)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM