如何轉換十六進制格式的字符串以從中檢索NSData,然後在我的iPhone應用程序中使用UIImage?將十六進制字符串轉換爲NSData
我有一個字符串(str),其中包含一個像X'FFD8FFE000104A46 .... 01010000010001000'的值。
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string {
str = [str stringByAppendingString:string];
}
我怎樣才能獲得的圖像從該字符串返回:
該字符串從XML文件通過的方法創建?
由於提前,
安德烈
請更改。舉例說明。 – 2010-09-13 16:47:26
我編輯了答案 – 2010-09-15 06:57:43