iOS点击按钮复制
2019-09-26 本文已影响0人
顺其自然_Cao
UIPasteboard *pab = [UIPasteboard generalPasteboard];
NSString *string = _skrTextF.text;
pab.string = string;
if (pab == nil) {
NSLog(@"复制失败");
}else
{
NSLog(@"复制成功");
}