iOS Instagram图片与Cropping Page共享

时间:2015-10-06 07:10:58

标签: ios instagram-api

我想与Instagram分享我的图像,我的代码将我转到Instagram过滤页面。但我想首先分享我的图像打开instagram图像裁剪页面,然后过滤页面然后分享它。 是否可以首先打开Instagram裁剪页面? 感谢

    CGRect rect = CGRectMake(0,0,0,0);
NSString *jpgPath=[NSHomeDirectory() stringByAppendingPathComponent:@"Documents/test.igo"];

[UIImageJPEGRepresentation(instaImage, 1.0) writeToFile:jpgPath atomically:YES];
NSURL *igImageHookFile = [[NSURL alloc] initWithString:[[NSString alloc] initWithFormat:@"file://%@",jpgPath]];
self.dic=[UIDocumentInteractionController  interactionControllerWithURL:igImageHookFile];
self.dic.UTI = @"com.instagram.exclusivegram";
[self.dic presentOpenInMenuFromRect: rect  inView: self.view animated: YES ];

0 个答案:

没有答案