美文网首页
ShareSDK code:207 报错, 还有plist设

ShareSDK code:207 报错, 还有plist设

作者: 梁同桌 | 来源:发表于2016-11-22 15:37 被阅读202次

    warning:尚未配置[QQ]URL Scheme:QQ41E9B8EA, 无法进行分享。

    分享失败,错误描述:Error Domain= ErrorDomain Code=207 "(null)" UserInfo={error_message=Can't share because platform[QQ]did not set URL Scheme:QQ41E9B8EA!Please try again after set URL Scheme!}

    要配置,打印的这个Scheme:QQ41E9B8EA
    plist
    http://wiki.mob.com/swift-调用-sharesdk/

    另外 微博url失败 error 207
    问题: http://bbs.mob.com/data/attachment/forum/201611/22/182533rqhb6hy8eq9acokb.png

    还有简洁版没有图标问题:

                //1.创建分享参数
                let shareParames = NSMutableDictionary()
                shareParames.ssdkSetupShareParams(byText: "一种非常享受的音乐内容,非常奇特 http://www.tongrenyinsheng.com",
                                                        images : UIImage(named: "dingBlue.png"),
                                                        url : NSURL(string:"http://www.tongrenyinsheng.com") as URL!,
                                                        title : "梦境ASMR:颅内高潮",
                                                        type : SSDKContentType.image)
                ///这句话,添加样式的
                SSUIShareActionSheetStyle.setShareActionSheetStyle(ShareActionSheetStyle.simple)
    //            2.进行分享
                ShareSDK.showShareActionSheet(self, items: nil, shareParams: shareParames, onShareStateChanged: { (state : SSDKResponseState, type, userdata , contentEnity, error, end) in
                    
                    switch state{
                        
                    case SSDKResponseState.success:
                        print("分享成功")
                        HUB("成功", error: false)
                    case SSDKResponseState.fail:
                        print("分享失败,错误描述:\(error)")
                        HUB("失败", error: true)
                    case SSDKResponseState.cancel:
                        print("分享取消")
    
                    default:
                        break
                    }
                })
    
    

    相关文章

      网友评论

          本文标题:ShareSDK code:207 报错, 还有plist设

          本文链接:https://www.haomeiwen.com/subject/kioppttx.html