【问题标题】:Semantic issue after updating Chartboost SDK更新 Chartboost SDK 后的语义问题
【发布时间】:2014-05-01 23:52:48
【问题描述】:

在 Xcode 中更新到最新的 Chartboost SDK 后出现以下问题。

  • (void)didCacheInterstitial:(NSString *)location { NSLog(@"插页式缓存在位置 %@", location);

  • (void)didDismissInterstitial:(NSString *)location { NSLog(@"在位置 %@ 关闭插页式广告", location);

[[Chartboost sharedChartboost] cacheInterstitial:location];

我得到的错误信息是:

“didCacheinterstitial:”实现中的参数类型冲突:“CBlocation vs 'NSString*”

无法使用“NSString*”类型的 Ivalue 初始化“CBlocation”类型的参数

任何解决此问题的帮助将不胜感激。

【问题讨论】:

    标签: xcode xcode5 chartboost


    【解决方案1】:

    Chartboost iOS SDK 改变了命名位置的定义方式。它们现在应该在 Chartboost.h 头文件中定义。这意味着 SDK 委托方法将接收类型 CBLocation 而不是 NSString

    有关详细信息,请参阅此帮助站点文档:https://help.chartboost.com/documentation/ios/namedlocations

    该版本还有一些其他更新,请查看changelog 了解更多信息。

    【讨论】:

      猜你喜欢
      • 2016-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-13
      • 1970-01-01
      • 2017-01-14
      • 1970-01-01
      相关资源
      最近更新 更多