MobClub / ShareSDK-for-iOS

快捷好用的社会化分享组件|Convenient SDK for SNS Share Feature
http://www.mob.com
464 stars 130 forks source link

使用QQApiImageArrayForQZoneObject分享图片到QQ空间不成功 #12

Closed wenyc closed 7 years ago

wenyc commented 7 years ago

我使用TencentOpenAPI.framework SDK V3.1。

    UIImage *image = [UIImage imageNamed:@"testImage"];
    NSData *imageData = UIImageJPEGRepresentation(image, 0.7);
    NSArray *array = @[imageData];
    QQApiImageArrayForQZoneObject *img = [QQApiImageArrayForQZoneObject objectWithimageDataArray:array title:@"分享图片到QQ空间"];
    SendMessageToQQReq *req = [SendMessageToQQReq reqWithContent:img];
    QQApiSendResultCode sentCode = [QQApiInterface SendReqToQZone:req];

代码执行以后, sendCode所报的错误码是:10002。但是我的手机QQ版本已经更行到最新了,还是报这个错误,求大神给出解答!!!

JinghuangLiu commented 7 years ago

联系下我们的技术支持

发自我的 iPhone

在 2017年2月16日,上午11:25,wenyuchao notifications@github.com 写道:

我使用TencentOpenAPI.framework SDK V3.1。

UIImage *image = [UIImage imageNamed:@"testImage"];
NSData *imageData = UIImageJPEGRepresentation(image, 0.7);
NSArray *array = @[imageData];
QQApiImageArrayForQZoneObject *img = [QQApiImageArrayForQZoneObject objectWithimageDataArray:array title:@"分享图片到QQ空间"];
SendMessageToQQReq *req = [SendMessageToQQReq reqWithContent:img];
QQApiSendResultCode sentCode = [QQApiInterface SendReqToQZone:req];

代码执行以后, sendCode所报的错误码是:10002。但是我的手机QQ版本已经更行到最新了,还是报这个错误,求大神给出解答!!!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

wenyc commented 7 years ago

OK,已经解决了