剪贴板

复制字符串到剪贴板

UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];

pasteboard.string = self.label.text;


复制图片到剪贴板

UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];

pasteboard.image = image;

你可能感兴趣的:(剪贴板)