UIPasteboard*pab = [UIPasteboard generalPasteboard];
NSString*string =self.shopQQ;
[pabsetString:string];
if(pab ==nil) {
[TDBaseTool showMessage:@"复制失败"time:1.0];
}else{
[TDBaseTool showMessage:@"复制成功"time:1.0];
}
UIPasteboard*pab = [UIPasteboard generalPasteboard];
NSString*string =self.shopQQ;
[pabsetString:string];
if(pab ==nil) {
[TDBaseTool showMessage:@"复制失败"time:1.0];
}else{
[TDBaseTool showMessage:@"复制成功"time:1.0];
}
本文标题:ios 点击按钮实现复制功能
本文链接:https://www.haomeiwen.com/subject/crzdnhtx.html
网友评论