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