[英]Unable to share text on Instagram in ios 5
我使用了以下代碼,instagram應用程序顯示了我的照片,但未顯示我要分享的文本。
我使用了注釋屬性,但無法正常工作。 我不知道哪里錯了?
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 ];
}
根據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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.