I am trying to share multiple images with UIActivityViewController, but so far, the examples I have found only share 1 image at a time. Any suggestions?
Asked
Active
Viewed 5,345 times
2 Answers
12
You should be able to do this using:
UIImage *image1 = [UIImage imageNamed:@"image1"];
UIImage *image2 = [UIImage imageNamed:@"image2"];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[image1, image2] applicationActivities:nil];

ccjensen
- 4,578
- 2
- 23
- 25
-
1How about images: [UIImage] = [image1, image2]. Then put the images to UIActivityViewController. I try this way, but it doesn't work. – Twitter khuong291 Dec 19 '15 at 14:13
-
You should make a separate SO question for that – ccjensen Dec 22 '15 at 11:52
-2
let ac = UIActivityViewController(activityItems: imagesForClients, applicationActivities: nil)
Where imagesForClients
is an array of UIImage objects.

BSMP
- 4,596
- 8
- 33
- 44