代码如下:
UIPasteboard *pab = [UIPasteboard generalPasteboard];
NSString *string = @"test";
[pab setString:string];
if (pab == nil)
{
[MBProgressHUD showError:@"复制失败"];}
else
{[MBProgressHUD showSuccess:@"已复制"];
}
代码如下:
UIPasteboard *pab = [UIPasteboard generalPasteboard];
if (pab == nil)
{
[MBProgressHUD showError:@"复制失败"];}
else
{