TapJoy崩溃iPhone应用程序 [英] TapJoy crash iPhone app

查看:55
本文介绍了TapJoy崩溃iPhone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的iPhone应用程序开发Tapjoy Publisher SDK集成.我工作得很好,但是在更新到最新的SDK 9.0.3之后,它开始在此行崩溃.

I am working on tapjoy publisher SDK integration for my iPhone app.I was working fine but after updating to latest SDK 9.0.3 its started crashing here on this line .

[TapjoyConnect requestTapjoyConnect:TAPJOY_ID secretKey:TAPJOY_SECRET_KEY];

崩溃描述.

* 由于未捕获的异常'NSUnknownKeyException'而终止应用程序,原因:'[setValue:forUndefinedKey:]:此类不符合键closeButton的键值编码要求.'

* Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key closeButton.'

任何帮助将不胜感激.谢谢

Any help will be greatly appreciated. Thanks

推荐答案

请确保您添加的TapjoyPublisherLibrary不宣传lib.

Make sure you added TapjoyPublisherLibrary not advertising lib.

这里是 8.x到9.x升级说明.

#import "TapjoyConnect.h"

[TapjoyConnect requestTapjoyConnect:TAPJOY_APP_ID secretKey:TAPJOY_APP_SECRECT_KEY];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getFullScreenAd:) name:TJC_FULL_SCREEN_AD_RESPONSE_NOTIFICATION object:nil];


- (void)getFullScreenAd:(NSNotification*)notifyObj
{
    // Displays a full screen ad, showing the current featured app.
    [TapjoyConnect showFullScreenAd];

}

-(void)showTapJoyAds
{
    // This method asks the tapjoy server for the featured app object.
    [TapjoyConnect getFullScreenAd];
}

这篇关于TapJoy崩溃iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆