From f83bfcb8594cd4e9deb0689814aac8d05cac6978 Mon Sep 17 00:00:00 2001 From: george-xu-hs Date: Thu, 12 Oct 2017 11:01:41 -0700 Subject: [PATCH] Add support for iOS 11 --- src/ios/CDVClipboard.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/CDVClipboard.m b/src/ios/CDVClipboard.m index d3a06f9..3f73893 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];