【发布时间】:2014-12-26 10:16:40
【问题描述】:
我正在尝试将多个文件共享到Facebook、mail、google driver 和whatsapp。
我可以通过UIDocumentInteractionController分享一个文件,如下代码:
NSString *filePath = [NSString stringWithFormat:@"%@/%@", directory, [fileList objectAtIndex:selectedIndexPath.row]] ;
url = [NSURL fileURLWithPath: filePath] ;
documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:url];
[documentInteractionController setDelegate:self];
documentInteractionController.UTI = @"net.whatsapp.image";
[documentInteractionController presentOptionsMenuFromRect:CGRectZero inView:self.view animated:YES];
如何在不使用UIActivityViewController的情况下通过UIDocumentInteractionController共享多个文件?
如果使用NSMutableArray,并添加url的多个对象。如何将NSMutableArray设置为UIDocumentInteractionController?
提前致谢。
【问题讨论】:
标签: ios objective-c facebook