使用 UIPasteboard
- OC
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = @"所需复制的内容";
- swift
let pasteboard = UIPasteboard.general
pasteboard.string = "所需复制的内容"
使用 UIPasteboard
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = @"所需复制的内容";
let pasteboard = UIPasteboard.general
pasteboard.string = "所需复制的内容"
本文标题:iOS 复制文本至剪贴板
本文链接:https://www.haomeiwen.com/subject/fqhrqktx.html
网友评论