将内容赋值到粘贴板里

192 阅读1分钟

只需这两句代码: UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard.string = @"需要复制的字符串";