我從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