且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在iOS中将字符串复制到剪贴板(粘贴板)上?

更新时间:2023-10-02 19:55:10

像这样:

    [UIPasteboard generalPasteboard].string = @"hello!";

Apple不使用剪贴板"一词;在iOS中,这是一个粘贴板",您可以有多个.

Apple doesn't use the term "clipboard"; in iOS it's a "pasteboard", and you can have more than one of them.