iOS Swift - 在 Instagram 上分享并附上说明文字

2023-12-29

我能够成功分享图像Instagram使用UIDocumentInteractionController,但是InstagramCaption钥匙不起作用。这是我的代码:

self.controller = UIDocumentInteractionController()
// controller.delegate = self

self.controller.URL = fileUri

// HERE, the caption won't appear.
self.controller.annotation = NSDictionary(objectsAndKeys: "my caption", "InstagramCaption")

self.controller.UTI = "com.instagram.exclusivegram"
self.controller.presentOpenInMenuFromRect(CGRectZero, inView: self.view, animated: true)

我究竟做错了什么?


看问题Instagram 标题不起作用 https://stackoverflow.com/questions/31915122/instagram-instagramcaption-not-working/31917013#31917013

此功能已从 iPhone 挂钩中删除

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

iOS Swift - 在 Instagram 上分享并附上说明文字 的相关文章

随机推荐