UIImage*imageToShare = [UIImageimageNamed:@"1.jpg"];
UIImage*imageToShare1 = [UIImageimageNamed:@"2.jpg"];
NSArray*activityItems = @[imageToShare,imageToShare1];
UIActivityViewController*activityVC = [[UIActivityViewControlleralloc]initWithActivityItems:activityItems applicationActivities:nil];
[self presentViewController:activityVC animated:TRUE completion:nil];
网友评论