iosinstagramuidocumentinteractionuidocument

ios iphone hooks open instagram directly without showing UIDocumentInteractionController


I'm integrating sharing images through instagram in my app. I've read their documentation.

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.

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.


Solution

  • 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.

    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.