ios 粘贴板

来源:互联网 发布:锐战网络 编辑:程序博客网 时间:2024/05/20 13:11

oc: 

 UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];

 pasteboard.string = @"你好";

swift:

let pas = UIPasteboard.generalPasteboard()
pas.string = "你好"
原创粉丝点击