ShareSDK code:207 报错, 还有plist设

2016-11-22  本文已影响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
                }
            })

上一篇下一篇

猜你喜欢

热点阅读