开发者

Easy way to copy multiline text to the clipboard?

开发者 https://www.devze.com 2022-12-31 12:20 出处:网络
How hard is it to do? I have a text with about 600 characters, multiple lines. Now I want to copy that text to the clipboar开发者_C百科d using the UIPasteboard classes. What would I need to implement?

How hard is it to do? I have a text with about 600 characters, multiple lines. Now I want to copy that text to the clipboar开发者_C百科d using the UIPasteboard classes. What would I need to implement?


Just call:

// To copy the string myText to the pasteboard:
[[UIPasteboard generalPasteboard] setString:myText];
0

精彩评论

暂无评论...
验证码 换一张
取 消