0

I had copied the image as data to UIPasteboard, i need this image to be automatically pasted to Message Compose without the user interaction. how to do it ?

NSData *imageData = UIImagePNGRepresentation(image1);
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
[pasteboard setData:imageData forPasteboardType:@"public.png"];
user1485749
  • 81
  • 2
  • 8

0 Answers0