0

I'm using the UIActivityViewController, and I have two items of data that I share. One is some text, and the other is an image. When I use the UIActivityTypeCopyToPasteboard, it always just copies the text component and not the image. I thought it might have been based on the order of the items in the array of data, but it makes no difference.

Is there any way to force it to copy the image instead of the text without having to make your own UIActivity?

Thanks.

Jacob Joz
  • 732
  • 1
  • 11
  • 29

1 Answers1

2

This tutorial will help you. Notice the use of UIActivityItemProvider <UIActivityItemSource>

Khanh Nguyen
  • 11,112
  • 10
  • 52
  • 65
  • Thanks, but my question was "is there a way to force it to copy the image instead of the text *WITHOUT* having to make your own UIActivity" – Jacob Joz Jun 25 '13 at 03:56
  • 1
    `UIActivityItemProvider` is *NOT* `UIActivity` and it's like, 10 or 20 lines. `UIActivity` is far more complex and for an entirely different purpose. – Khanh Nguyen Jun 25 '13 at 03:59