我已完成以下代码以在 Instagram 上发布图片和文本
let fileURL = NSURL(fileURLWithPath: writePath)
self.documentController = UIDocumentInteractionController(URL: fileURL)
self.documentController.delegate = self
self.documentController.UTI = "com.instagram.exclusivegram"//"com.instagram.photo"
self.documentController.annotation = NSDictionary(object: strTitle as String, forKey: "InstagramCaption")
self.documentController.presentOpenInMenuFromRect(self.view.frame, inView: self.view, animated: true)
它在 iOS 8.3 中运行良好,但在 iOS 9 中缺少标题。 为什么会这样?我该如何解决?
最佳答案
我遇到了同样的问题,我发现它已于 2015 年 8 月早些时候被 Instagram 删除。
Instagram 博客 http://developers.instagram.com/post/125972775561/removing-pre-filled-captions-from-mobile-sharing
关于ios - iOS 9 应用程序中缺少 Instagram 标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31012861/