I am trying to share files with Facebook , mail , google driver and whatsapp .
I can share one file through UIDocumentInteractionController as follows:
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];
How to transfer multiple files via UIDocumentInteractionController without using UIActivityViewController ?
If using NSMutableArray and add some url objects. How to set NSMutableArray to UIDocumentInteractionController ?
Thanks in advance.
source share