iOS 复制图片到剪切版:解决iOS6问题

复制UIImage到剪切版,在iOS 6
[[UIPasteboard generalPasteboard]setImage:_imageResult];
无效
使用以下代码
[[UIPasteboard generalPasteboard]setData:UIImagePNGRepresentation(_imageResult) forPasteboardType:[UIPasteboardTypeListImage objectAtIndex:0]];



UIPasteboardTypeListImage 数组:

public.png
public.tiff
public.jpeg
com.compuserve.gif

com.apple.uikit.image
posted @ 2013-07-26 00:41  漫步雨桥  阅读(528)  评论(0编辑  收藏  举报