UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; [pasteboard setString:md.shareLink]; [HUDManager showStateHud:@"链接复制成功" state:(HUDStateTypeSuccess)];
参考资料:
ios开发 UIPasteboard 的简单使用
https://www.jianshu.com/p/1213f9f00fdd
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; [pasteboard setString:md.shareLink]; [HUDManager showStateHud:@"链接复制成功" state:(HUDStateTypeSuccess)];
参考资料:
https://www.jianshu.com/p/1213f9f00fdd