首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iOS 9应用中缺少Instagram标题

iOS 9应用中缺少Instagram标题
EN

Stack Overflow用户
提问于 2015-06-24 04:27:45
回答 4查看 2.3K关注 0票数 7

我已经完成了以下代码,以便在Instagram上发布图片和文本

代码语言:javascript
复制
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中却缺少标题。为什么会这样?我该如何修复它?

EN

回答 4

Stack Overflow用户

发布于 2015-08-12 19:58:20

我也遇到了同样的问题,我发现它已经在2015年8月初被Instagram删除了。

Instagram博客http://developers.instagram.com/post/125972775561/removing-pre-filled-captions-from-mobile-sharing

票数 4
EN

Stack Overflow用户

发布于 2015-08-11 18:21:53

刚刚发现Instagram在其新版本中删除了此功能

https://www.apichangelog.com/changes/c6542ec9-6e02-4352-8db4-6481a8af4039

票数 2
EN

Stack Overflow用户

发布于 2015-06-24 07:12:11

我真的不确定,因为我没有一个样例项目可以尝试,但有什么特别的原因不使用Swift字典而不是NSDictionary?

代码语言:javascript
复制
self.documentController.annotation = ["InstagramCaption": strTitle]

如果你能提供一个示例项目,那就太好了。另外,请记住,Swift 2仍处于测试阶段,iOS 9也是如此。我最近在Swift 2的OS X El Capitan中发现了一些错误,代码在Yosemite上运行不像预期的那样。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31012861

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档