RDActivityViewController icon indicating copy to clipboard operation
RDActivityViewController copied to clipboard

Unable to get "Save image" to work

Open heumn opened this issue 11 years ago • 0 comments

I have 3 items I would like to share, a title, an image and a link. Depending on the situation (sms vs email vs facebook vs twitter) there are different thinks I would like to share. This works perfectly and why I use RDActivityViewController.

However, I have one problem, and that is the "Save to cameraroll" is not working.

UIActivityViewController does not know what type of object would like we share. That's why "Save Image" not shown.

Apple says it's not a problem there is a activityViewControllerPlaceholderItem method in UIActivityItemSource. RDActivityViewController actually handles this (called placeholderItem), but sadly this isn't what it looks like. If I use a placeholderItem Twitter sharing disappears and there will be a "Save 3 Images" (or "Save 10 Images" depends on the maximumNumberOfItems) text on UIActivityViewController. (???)

So I tried to some alternative solutions. After a dozen of "dead end" I added not only the subclassed UIActivityItemSource objects but a real UIImage to "tell" UIActivityViewController there will be an image too. In this case everything looks fine, but text says "Save 10 images" ..

I gave it up... :)

heumn avatar Jan 04 '14 15:01 heumn