Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 855
Guru Avatar asked Oct 21 '22 00:10

Guru


1 Answers

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.

like image 151
Berk Avatar answered Nov 03 '22 23:11

Berk