Instagram iPhone Hooks iOS 11.2.5 instagram 29, feed does not open, but camera roll

In a project that I use UIDocumentInteractionController to copy / share and image on Instagram, it worked fine for a while.

As soon as I selected the instagram app from the iOS shared folder. The image was opened in the filter selection section.

Recently, the image now opens in a view with closing x and two buttons, one for selecting plots, and the other for selecting a channel, if I select a channel, then the camera roll opens and the last image or camera is selected, but the image I used from my project disappears. I can’t find out if there are any changes in the hooks or instagram documentation. general sheet opens

instagram application opens a file; if a channel is selected, the file or image is lost and only camera viewing is available

+2
source share
2 answers

I also see this behavior when sharing through the UIDocumentInteractionController, it previously worked fine. Instagram can break something?

NSData *imageData = UIImageJPEGRepresentation(self.image, 1.0);

NSString *writePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"instagram.igo"];
if (![imageData writeToFile:writePath atomically:YES]) {
    [self activityDidFinish:NO];
    return;
}

NSURL *fileURL = [NSURL fileURLWithPath:writePath];
self.documentController = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
self.documentController.delegate = self;
[self.documentController setUTI:@"com.instagram.exclusivegram"];

// Presentation logic
0
source

Instagram seems to have fixed this issue in version 35.0.

0
source

Source: https://habr.com/ru/post/1692653/


All Articles