【发布时间】:2018-11-02 10:56:01
【问题描述】:
我有问题。在 iOS 上与 FBSDKShareDialog 共享时,我在按下 (x) 时遇到了崩溃。这样做只会抛出Thread 1: EXC_BAD_ACCESS (code=1, address=0x0),仅此而已。没有调用委托或错误只是崩溃。连接到同一个 fb 应用程序的生产应用程序可以正常工作。对于在哪里寻找的任何建议,我将不胜感激。
我的分享对话框代码:
let method = user.id == CurrentUser.sharedUser.id ? "some_action" : "other_action"
fbAction.actionType = method
fbAction.setString("\(manager.appHost)\(obj.fbShareUrl)", forKey: "employee")
let content = FBSDKShareOpenGraphContent()
content.action = fbAction
content.previewPropertyName = "employee"
FBSDKShareDialog.show(from: showingController, with: content, delegate: showingController)
【问题讨论】: