【问题标题】:Is it possible to attach delegate to FBSDKShareDialog presented by FBSDKShareButton?是否可以将委托附加到 FBSDKShareButton 提供的 FBSDKShareDialog?
【发布时间】:2016-10-09 19:27:11
【问题描述】:

从 Facebook 文档中,我知道 FBSDKShareButton 在后台使用 FBSDKShareDialog。将委托附加到对话框很容易,但是如何将委托附加到通过按钮以与此不同的方式呈现的对话框?

if let dialog = shareButton.value(forKey: "_dialog") as? FBSDKShareDialog{
    dialog.delegate = aDelegate
}

【问题讨论】:

    标签: ios swift fbsdk


    【解决方案1】:

    "_dialog" 是私有财产。您的代码是访问它的最佳方式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-04
      • 1970-01-01
      相关资源
      最近更新 更多