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

Copy Image to Clipboard #8

Open
zzimbler opened this issue Jan 29, 2015 · 1 comment
Open

Copy Image to Clipboard #8

zzimbler opened this issue Jan 29, 2015 · 1 comment

Comments

@zzimbler
Copy link

It would be really nice to have this also copy an image. Perhaps a new method called CopyImage() which accepts a URL?

Example pulled from stackoverflow

NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://fc05.deviantart.net/fs37/f/2008/283/a/b/KaleidoCoils_animated__gif_by_1389AD.gif"]];
UIPasteboard *pasteBoard=[UIPasteboard generalPasteboard];
[pasteBoard setData:data forPasteboardType:@"com.compuserve.gif"];
@hirbod
Copy link

hirbod commented Feb 3, 2015

But asynchron request please :). This code above would block ui till the operation is done or timeouted

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

2 participants