ios 点击按钮实现复制功能
2020-05-12 本文已影响0人
biubiuboom
UIPasteboard*pab = [UIPasteboard generalPasteboard];
NSString*string =self.shopQQ;
[pabsetString:string];
if(pab ==nil) {
[TDBaseTool showMessage:@"复制失败"time:1.0];
}else{
[TDBaseTool showMessage:@"复制成功"time:1.0];
}