// 获取系统剪切板 UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; // 将 label 的文字存储到剪切板 pasteboard.string = self.label.text; // 将剪切板的文字赋值给 label self.label.text = pasteboard.string;
UIPasteboard
原文:https://www.cnblogs.com/CH520/p/9413511.html