Is it possible to present a UIDocumentInteractionController for multiple items?

ios, ios7, uidocumentinteraction

Solution

- (void)showShareDialog
{
    UIImage *image = [UIImage imageWithCGImage:self.imgView.image.CGImage];

    NSArray* dataToShare = @[image, image2, image3];  // ...or whatever pieces of data you want to share.

    UIActivityViewController* activityViewController =
    [[UIActivityViewController alloc] initWithActivityItems:dataToShare
                                      applicationActivities:nil];
    [self presentViewController:activityViewController animated:YES completion:^{

    }];

}

I think this should help

Problem

The Photos app in iOS 7 allows you to select multiple photos, tap "Share" and be presented with a document interaction controller with the appropriate options for multiple items. The Camera app goes one further and even updates the document interaction controller's options in real time as you select and deselect photos. However, the UIDocumentInteractionController class seems only to allow for a single URL parameter. Is it possible to do what the Photos and Camera apps do using public API?

Original source