0

你能告诉我,我做错了什么,照片没有显示在新的 Instagram 中吗?它根本不在那里出口。

编辑:我看到的问题是它没有显示在 Instagram 的预览中。当我去“下一步”时,会看到一个缩略图。如果重要的话,我的输出图片是 1000x1000。

NSString *savePath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/Image.igo"];

// Write image to PNG
[UIImageJPEGRepresentation(preview.image, 1.0) writeToFile:savePath atomically:YES];

NSURL *instagramURL = [NSURL URLWithString:@"instagram://app"];

if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) 
{
    //imageToUpload is a file path with .ig file extension
    documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:savePath]];

    documentInteractionController.UTI = @"com.instagram.exclusivegram";
    documentInteractionController.delegate = self;

    documentInteractionController.annotation = [NSDictionary dictionaryWithObject:@"bla bla bla" forKey:@"InstagramCaption"];
    [documentInteractionController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES];
4

1 回答 1

0

http://help.instagram.com/customer/portal/articles/884829-images-doesn-t-display-when-importing-from-3rd-party-app-ios-only-

这是来自 Instagram 的官方信息。

于 2012-12-15T09:42:46.900 回答