ios - iOS 9 应用程序中缺少 Instagram 标题

标签 ios swift instagram

我已完成以下代码以在 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/

相关文章:

swift - 使用 Facebook 凭据删除帐户

swift - NSURLCredential 无法在 Swift 中编译

ios - Instagram 媒体搜索 : the larger the radius I get less results. .. 这可能吗?

ios - 使用新的 instagram graph api 登录 instagram?

javascript - 从 Instagram Graph 获取 JSON 时出现 404 错误

ios - 在 iOS 13 中覆盖 traitCollection

ios - 使用 SwiftGen 在运行时更改语言

ios - 如何将cocoapod添加到ios框架

iOS Action 扩展没有打开我的主应用程序

swift - CoreData 多线程正在生成随机崩溃