Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get "Save image" to work #7

Open
heumn opened this issue Jan 4, 2014 · 0 comments
Open

Unable to get "Save image" to work #7

heumn opened this issue Jan 4, 2014 · 0 comments

Comments

@heumn
Copy link

heumn commented Jan 4, 2014

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... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant