From 906b0f6e3b39a41123289ca8f582629f8e37e867 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 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];