Ios iphone hooks open instagram directly without showing UIDocumentInteractionController

I integrate image sharing through instagram in my application. I read their documentation .

It seems I need to use the iOS UIDocumentInteractionController to allow this (I understand that it allows access to the files in the sandbox of my application).

Digging deeper, I stumbled upon this library , which makes things very simple.

The problem with it is that it is an action sheet (in which there is only one button - Instagram ...). How to use instagram hooks using UIDocumentInteractionController without displaying an action sheet. I came across this question , which is almost the same, but deprecated without an answer.

+7
source share
2 answers

I searched for it myself, I don’t think it is possible to use the UIDocumentInteractionController without displaying an action sheet, and it is not possible to split the image using instagram without using the UIDocumentInteractionController.

This leads to an inevitable screen of action.

I understand why they designed it that way (you don’t leave the application unknowingly as a user), but in many cases this leads to an annoying interface design.

+5
source

I use a very simple open Instagram thread.

  • I save the image locally for photos
  • Then I open Instagram with the following URL: instagram: // library? AssetPath = assets-library

This opens Instagram directly in the photo library . Since the photo was saved a few moments ago, the new photo is visible as the first photo in the library.

+4
source

All Articles