ios iphone挂钩直接打开instagram而不显示UIDocumentInteractionController [英] ios iphone hooks open instagram directly without showing UIDocumentInteractionController
问题描述
我正在我的应用中通过Instagram整合分享图片。我已经阅读了他们的文档。
I'm integrating sharing images through instagram in my app. I've read their documentation.
似乎我需要使用iOS UIDocumentInteractionController来实现这一点(我知道它允许访问我应用程序沙箱中的文件)。
It seems that I need to use the iOS UIDocumentInteractionController to allow this (I understand that it allows access to files in my app's sandbox).
深入挖掘,我遇到了这个图书馆这使事情变得非常简单。
Digging deeper, I came across this library which makes things very straightforward.
我遇到的问题是它提供了动作表(只有一个按钮--Losk ......)如何使用Instagram挂钩, UIDocumentInteractionController没有显示操作表。我遇到了这个问题,这几乎是一样的,但过时没有答案。
The problem I have with it is that it presents the action sheet (which only has one button - Instagram...) How can I use the instagram hooks , with the UIDocumentInteractionController without showing the action sheet. I came across this question which is pretty much the same, but its outdated with no answer.
推荐答案
我自己搜索过这个,我不认为可以在不显示操作表的情况下使用UIDocumentInteractionController,如果不使用UIDocumentInteractionController,也不可能与instagram共享图像。
I've searched for this myself, I don't think it's possible to use the UIDocumentInteractionController without showing an action sheet, nor does it seem possible to share an image with instagram without using a UIDocumentInteractionController.
这导致了不可避免的行动表。
Which leads to the unavoidable action sheet.
我理解为什么他们这样设计它(你不会在不知不觉中留下一个应用程序)但在很多情况下它会导致恼人的UI设计。
I understand why they designed it like that (you won't leave an app unknowingly as a user) but it leads to annoying UI design in many cases.
这篇关于ios iphone挂钩直接打开instagram而不显示UIDocumentInteractionController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!