0
在下面的版本中,ShareButton to Facebook的工作成功,但在11版本中这个功能不起作用。你能建议什么?在Facebook上分享IOS 11 Swift
if SLComposeViewController.isAvailable(forServiceType: SLServiceTypeFacebook) {
var vc: SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeFacebook)
vc.setInitialText("My text")
self.present(vc, animated: true, completion: nil)
}
您应该使用UIActivityViewController如果你没有自己的份额扩展 –
看看这个链接https://stackoverflow.com/questions/44879798/about-slcomposeviewcontroller-in-ios-11-beta可能会有所帮助。 –