diff --git a/src/ios/CDVClipboard.m b/src/ios/CDVClipboard.m index c70378c..d30bf61 100644 --- a/src/ios/CDVClipboard.m +++ b/src/ios/CDVClipboard.m @@ -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];