【问题标题】:Chartboost IntegrationChartboost 集成
【发布时间】:2014-06-20 15:53:12
【问题描述】:

我在 Xcode 中有一个没有内置广告的应用,我想添加 Chartboost。我下载了 SDK 但卡住了。我有最新的 chartboost SDK,当我将它添加到 xcode 时,我收到一个问题,提示无法初始化 id<ChartboostDelegate' with an Ivalue of type 'AppController* 类型的参数

【问题讨论】:

    标签: ads chartboost


    【解决方案1】:

    看来您需要将 chartboostDelegate 添加到 AppController 接口。 它应该看起来像这样:

    @interface AppController : NSObject <UIAccelerometerDelegate, UIAlertViewDelegate,
    UITextFieldDelegate,UIApplicationDelegate, ChartboostDelegate>
    

    您还应该在顶部添加:#import "Chartboost.h"

    【讨论】:

      【解决方案2】:

      只要把它放在你的appDelegate.m上面:

      #import <Chartboost/Chartboost.h>
      #import <Chartboost/CBNewsfeed.h>
      #import "AppDelegate.h"
      
      @interface AppDelegate () <ChartboostDelegate, CBNewsfeedDelegate>
      @end
      

      享受吧!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-07-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-06-26
        相关资源
        最近更新 更多