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-

インスタグラムからの公式情報です。

于 2012-12-15T09:42:46.900 に答える