7

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?

Pang
  • 9,564
  • 146
  • 81
  • 122

2 Answers2

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
-2
let ac = UIActivityViewController(activityItems: imagesForClients, applicationActivities: nil)

Where imagesForClients is an array of UIImage objects.

BSMP
  • 4,596
  • 8
  • 33
  • 44