我无法使我的GameViewController适应FBSDKSharingDelegate,我也不知道为什么。
这些是我认为需要的功能。
func sharer(sharer: FBSDKSharing, didCompleteWithResults results: [NSObject : AnyObject]) {
}
func sharer(sharer: FBSDKSharing, didFailWithError error: NSErrorPointer) {
}
func sharerDidCancel(sharer: FBSDKSharing) {
NSLog("share cancelled")
}
我想念什么吗?
先感谢您!
最佳答案
解决了。
func sharer(sharer: FBSDKSharing!, didCompleteWithResults results: [NSObject: AnyObject]) {
print(results)
}
func sharer(sharer: FBSDKSharing!, didFailWithError error: NSError!) {
print("sharer NSError")
print(error.description)
}
func sharerDidCancel(sharer: FBSDKSharing!) {
print("sharerDidCancel")
}