我从UIwebView
使用剪贴板复制图像,我想邮寄它。为此,我使用通用粘贴板来获取数据,但是在检索数据时出现问题。当我检查粘贴板当前数据,它说它有Apple Web Archive粘贴板类型数据,如何阅读this.here是我的回忆文本代码。从UIPasteboard复制数据
UIPasteboard* pasteboard = [UIPasteboard generalPasteboard];
NSArray* array = [pasteboard pasteboardTypes];
for (NSString* type in array) {
NSLog(@"%@",type);
}
NSString* item = @"Apple Web Archive pasteboard type";
NSData* val = [pasteboard dataForPasteboardType:item];
我试图用这个数据创建一个UIImage,但没有奏效。
忘了更新question.I的状态想出解决办法后,在i贴question.thanks虽然您的时间。 – Farhan 2010-09-20 16:24:08