Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: NSData 到 UIImage
如何将 NSData 值转换为 UIImage?
您可以从NSData获取UIImage ,如下所示:
NSData *data = yourData; UIImage *image = [UIImage imageWithData:data];
或者
NSData *data = yourData; UIImage *image = [[UIImage alloc] initWithData:data]; .... [image release];