iOS 更改 Chartboost 委托(delegate)

标签 ios delegates chartboost

如何更改 Chartboost 委托(delegate)。看来它只能在初始化时设置一次。如果我想在 init 之后更改它怎么办?我只是再次初始化吗?

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

最佳答案

根据需要调用 StartWithAppId(),根据 Chartboost 支持,这不会产生不利影响(至少在 Chartboost v5.1.3 中)。创建一个单例作为委托(delegate)并让该代理监听器方法也是一个不错的选择。

关于iOS 更改 Chartboost 委托(delegate),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28121043/

相关文章:

ios - 尝试为 iPhone 模拟器构建 Unity 应用程序时出现 Apple Mach O 链接器错误

ios - 用于 MobileConfig 文件的 OS X 终端中的 XML 解析

c# - 如何跨类发布和订阅事件

xcode - Chartboost 与 XCode 6.1 的集成问题

C# Func<> 在库中委托(delegate)

c# - 如何使用Tasks简化Delegate.BeginInvoke/Delegate.EndInvoke?

ios - Chartboost 插页式 : "not in the window hierarchy!" warning

objective-c - 使用 NSArray 时出现 NSInvalidArgumentException

ios - 是否可以在 dismissmodelviewcontroller 时返回一个值

ios - 在 iOS 应用程序中处理授权的更合适的方法是什么