UIPasteboard *pab = [UIPasteboard generalPasteboard];
NSString *string = @"测试";
[pab setString:string];
if (pab == nil) {
//复制失败
}else
{
//赋值成功
}
赋值字符到手机剪贴板
最新推荐文章于 2021-12-14 16:28:50 发布