iOS Swift - 在 Instagram 上分享字幕
iOS Swift - Share on Instagram with captions
我可以使用 UIDocumentInteractionController
在 Instagram 上成功分享图片,但 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)
我做错了什么?
看问题
此功能已从 iPhone 挂钩中删除
我可以使用 UIDocumentInteractionController
在 Instagram 上成功分享图片,但 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)
我做错了什么?
看问题
此功能已从 iPhone 挂钩中删除