Skip to content

Commit

Permalink
iOS 10 Copy Fix
Browse files Browse the repository at this point in the history
As suggested by @zwand19 in VersoSolutions#26
  • Loading branch information
XPanniX authored Oct 24, 2016
1 parent 03fe48b commit dac4c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 All @@ -27,4 +27,4 @@ - (void)paste:(CDVInvokedUrlCommand*)command {
}];
}

@end
@end

0 comments on commit dac4c0e

Please sign in to comment.