Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Instagram iPhone钩住了iOS 11.2.5 Instagram 29,feed没有打开文件,而是打开了摄像头_Ios_Swift_Instagram_Share_Uidocumentinteractioncontroller - Fatal编程技术网

Instagram iPhone钩住了iOS 11.2.5 Instagram 29,feed没有打开文件,而是打开了摄像头

Instagram iPhone钩住了iOS 11.2.5 Instagram 29,feed没有打开文件,而是打开了摄像头,ios,swift,instagram,share,uidocumentinteractioncontroller,Ios,Swift,Instagram,Share,Uidocumentinteractioncontroller,我的项目使用UIDocumentInteractionController复制/共享并将图像复制到Instagram,它在一段时间内运行良好 当我从iOS共享表中选择instagram应用程序时。图像已在“选择过滤器”部分打开 最近,图像现在在一个视图中打开,该视图带有一个要关闭的x和两个按钮,一个用于选择故事,另一个用于选择馈送。如果我选择馈送,则会打开相机卷并选择最后一张图片,或者相机,但我从项目中共享的图像会消失。我找不到挂钩或instagram文档是否有变化 我在通过UIDocumen

我的项目使用UIDocumentInteractionController复制/共享并将图像复制到Instagram,它在一段时间内运行良好

当我从iOS共享表中选择instagram应用程序时。图像已在“选择过滤器”部分打开

最近,图像现在在一个视图中打开,该视图带有一个要关闭的x和两个按钮,一个用于选择故事,另一个用于选择馈送。如果我选择馈送,则会打开相机卷并选择最后一张图片,或者相机,但我从项目中共享的图像会消失。我找不到挂钩或instagram文档是否有变化


我在通过UIDocumentInteractionController共享时也看到了这种行为,它以前工作正常。Instagram可能弄坏了什么东西

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

Instagram似乎已经在35.0版中解决了这个问题。

您能分享一段代码片段吗?