-
//粘贴板 let pasteboard:UIPasteboard = UIPasteboard.general pasteboard.string = self.copyUrl //传入的链接 if pasteboard.string == nil { ProgressHUD.showError("复制失败") }else{ ProgressHUD.showSuccess("已复制") }
iOS中粘贴板复制链接简单使用
最新推荐文章于 2020-07-13 11:02:31 发布
//粘贴板
let pasteboard:UIPasteboard = UIPasteboard.general
pasteboard.string = self.copyUrl //传入的链接
if pasteboard.string == nil {
ProgressHUD.showError("复制失败")
}else{
ProgressHUD.showSuccess("已复制")
}