系统粘贴板:
-
程序间的通信使用公共方法
UIPasteboard * paster = [UIPasteboard generalPasteboard]; paster.string = _orderDetailInfo.sn;
如果是系统内的通信,需要自己创建
UIPasteboard *paster = [UIPasteboard pasteboardWithName:@"myCopySn" create:YES]; //提供唯一的标识名,如果不存在就create
paster.string = @"要复制的内容";
paster.image = self.image; //要复制的图片