开发者

Convert DataBytes into UIImage [closed]

开发者 https://www.devze.com 2023-02-15 13:04 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist

Closed 9 years ago.

开发者_开发技巧 Improve this question

I want to convert Databytes into UIImage..


UIImage *image = [[UIImage alloc] initWithData: NSData_yourDataBytes];


use these methods see in documentation

+ (UIImage *)imageWithData:(NSData *)data

 - (id)initWithData:(NSData *)data


Go through this link

http://www.iphonedevsdk.com/forum/iphone-sdk-development/35906-convert-bytes-into-uiimage.html you can also use imageWithData:

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号