无法在Instagram上共享ios 5中的文本
问题描述:
我使用了下面的代码,Instagram应用程序显示我的照片,但显示了我想要共享的文本不显示。无法在Instagram上共享ios 5中的文本
我使用了注释属性,但它不工作。我不知道哪里错了?
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
请参阅从迈克·克里格承认错误了以下评论:
https://groups.google.com/d/msg/instagram-api-developers/wLfX0cJUUyM/SK_m4IJ3wn8J
+0
你是对的。新版本(3.5.1:5月7日发布),修正了上述错误。谢谢@凯尔。 – JinJin 2013-05-08 00:51:08
感谢。但我的问题是共享文本不工作“self.docController.annotation = [NSDictionary dictionaryWithObject:@”我想分享这个文本“forKey:@”InstagramCaption“];”。 – JinJin 2013-05-07 16:42:21