Search code examples
iosobjective-cuiactivityviewcontroller

Share more than 5 images with UIActivityViewController


I have integrated with UIActivityViewController for sharing images to Facebook:

NSArray* dataToShare = imageArray;  //This is my image array
activityViewController =
        [[UIActivityViewController alloc] initWithActivityItems:dataToShare
                                          applicationActivities:nil];
[[[self parentViewController] parentViewController] presentViewController:activityViewController animated:YES completion:nil];

Sharing is working fine, but there is a problem while sharing multiple images. If there are more than 5 images, it only shares the first 5; the rest are ignored. The same problem occurs while saving the images to the camera roll, but for mail composer, all the images are there.

How can I solve this issue?


Solution

  • The behaviour is the same in Photos.app actually.

    I'm not sure what the reasoning behind it is but that's how Apple does it as well in their own apps. so I'm guessing it is intended.