2012.01.05 17:04

UIImage to NSData 변환

UIImage *img = [UIImage imageNamed:@"test.png"];
NSData *dataObj = UIImageJPEGRepresentation(img, 1.0);


NSData to UIImage

UIImage *image = [[UIImage alloc] initWithData:obj];
UIImageView = [[UIImageView] alloc] initWithImage:image];
Trackback 0 Comment 0