【发布时间】:2011-10-02 13:30:21
【问题描述】:
单击菜单中的“复制”项,我尝试使用以下代码将图像数据复制到UIPasteboard。
UIPasteboard *gpBoard = [UIPasteboard generalPasteboard];
[[gpBoard setData:UIImageJPEGRepresentation(imgView.image, 1.0) forPasteboardType:UIPasteboardTypeListImage];
forPasteboardType:需要发送哪个参数,复制数据后如何测试?
【问题讨论】:
-
此链接可能对您有所帮助。 stackoverflow.com/questions/5111422/….
标签: ios cocoa-touch copy-paste uipasteboard