【发布时间】:2018-10-13 00:38:27
【问题描述】:
我想要发布到 Facebook 的 gif 文件的文档目录路径,但不幸的是,当我使用此过程时,它发布的是静态图像而不是动画。我知道它是动画的,因为我可以将相同的图像保存到我的相机胶卷并看到它动画。是否有发布此 GIF 的动画版本?
let image = UIImage(contentsOfFile: path) // document directory path
let sharePhoto = FBSDKSharePhoto()
sharePhoto.image = image
let content = FBSDKSharePhotoContent()
content.photos = [sharePhoto]
let shareDialog: FBSDKShareDialog = FBSDKShareDialog()
shareDialog.shareContent = content
shareDialog.mode = .native
shareDialog.show()
【问题讨论】:
标签: ios swift animated-gif facebook-sdk-4.0