标签: ios uiimage nsdata
可能重复: NSData to UIImage
如何将NSData值转换为UIImage?
答案 0 :(得分:30)
您可以从UIImage获取NSData,如下所示:
NSData *data = yourData; UIImage *image = [UIImage imageWithData:data];
或
NSData *data = yourData; UIImage *image = [[UIImage alloc] initWithData:data]; .... [image release];