Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Share multiple images with UIActivityViewController

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?

like image 212
Jesús Guerrero Almaraz Avatar asked Jul 09 '13 04:07

Jesús Guerrero Almaraz


1 Answers

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];
like image 146
ccjensen Avatar answered Oct 18 '22 02:10

ccjensen