Instagram iPhone Hooks iOS 11.2.5 instagram 29, feed not opening the file, but the camera roll

独自空忆成欢 提交于 2020-01-15 04:01:05

问题


the project I have uses UIDocumentInteractionController to copy/share and image to Instagram, it worked fine for a while.

As soon as I selected the instagram app from the iOS share sheet. the image was open in the select filter section.

Recently, the image is now opened in a view with an x to close and two buttons, one to select stories and another one to select feed, if I select feed, then the camera roll is opened and the last picture is selected or the camera but the image I was sharing from my project disappears. I can not find if there is a change in hooks or the instagram documentation. share sheet opens

instagram app opens the file if feed selected then the file or image is lost and only camera roll is avaiable


回答1:


Instagram seems to have fixed this issue in version 35.0.




回答2:


I am also seeing this behavior when sharing via UIDocumentInteractionController, it was previously working fine. Instagram may have broken 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


来源:https://stackoverflow.com/questions/48453912/instagram-iphone-hooks-ios-11-2-5-instagram-29-feed-not-opening-the-file-but-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!