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.創(chuàng)建分享參數
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
}
})