Swift版
let pastboard = UIPasteboard.general
pastboard.string = "复制的内容"
OC版
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = @"复制的内容";
这样文本就复制到剪切板了
let pastboard = UIPasteboard.general
pastboard.string = "复制的内容"
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = @"复制的内容";
这样文本就复制到剪切板了