一个按钮点击,复制label上面的文字
2017-06-21 本文已影响0人
null_create
UIPasteboard *pab = [UIPasteboard generalPasteboard];
NSString *string = @"测试";
[pab setString:string];
if (pab == nil) {
[MBProgressHUD showError:@"复制失败"];
}else
{
[MBProgressHUD showSuccess:@"已复制"];
}