0

次のコードを使用し、instagram アプリには写真が表示されますが、共有したいテキストは表示されません。

アノテーション プロパティを使用しましたが、機能しません。どこが間違っているのかわからない?

インスタグラムのバージョン: 3.5.0

私のiPhoneのバージョン:5.0.1

Xcode バージョン: 4.6

よろしく。

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

if ([[UIApplication sharedApplication] canOpenURL:instagramURL])
{       
    NSString  *jpgPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/image.igo"];
    NSString *urlString = [[NSString alloc] initWithFormat:@"file://%@", jpgPath];        
    NSURL *imageUrl = [[NSURL alloc] initWithString: urlString];

    self.docController = [self setupControllerWithURL:imageUrl usingDelegate:self];
    self.docController.UTI = @"com.instagram.exclusivegram";
    self.docController.annotation = [NSDictionary dictionaryWithObject:@"I want to share this text" forKey:@"InstagramCaption"];

    [self.docController presentOpenInMenuFromRect: self.view.frame inView: self.view animated: YES ];

}
4

1 に答える 1

0

Instagram フォーラムによると、最新 (3.5) リリースではサードパーティのキャプションが壊れていました。

https://groups.google.com/d/topic/instagram-api-developers/wLfX0cJUUyM/discussion

バグを認めている Mike Krieger の次のコメントを参照してください。

https://groups.google.com/d/msg/instagram-api-developers/wLfX0cJUUyM/SK_m4IJ3wn8J

于 2013-05-07T17:32:40.440 に答える