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 committed Oct 12, 2017
1 parent bd60540 commit 906b0f6
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 906b0f6

Please sign in to comment.