Skip to content

Commit

Permalink
Add support for iOS 11
Browse files Browse the repository at this point in the history
  • Loading branch information
george-xu-hs authored and alberto lalama committed Mar 12, 2018
1 parent a98a559 commit f83bfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/CDVClipboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ - (void)copy:(CDVInvokedUrlCommand*)command {
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
NSString *text = [command.arguments objectAtIndex:0];

[pasteboard setValue:text forPasteboardType:@"public.text"];
pasteboard.string = text;

CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:text];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
Expand Down

0 comments on commit f83bfcb

Please sign in to comment.