iOS开发之复制字符串到剪贴板

APP偶尔需要点击功能,把字符串复制到系统粘贴板,方法如下:

UIPasteboard*pasteboard = [UIPasteboardgeneralPasteboard];

pasteboard.string=self.label.text;

posted on 2017-02-20 13:22  NSSong  阅读(165)  评论(0编辑  收藏  举报