text 为赋值的内容
实现复制粘贴很简单只需两句代码:
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = text;//复制到手机的粘贴板
到此复制完成,只需要到粘贴的位置粘贴即可
text 为赋值的内容
实现复制粘贴很简单只需两句代码:
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = text;//复制到手机的粘贴板
到此复制完成,只需要到粘贴的位置粘贴即可