UIImage NSData 相互转化

//UIImage 转为 NSData
    NSData *imageData = UIImagePNGRepresentation(aImage);
//NSData 转为 UIImage
    UIImage *newImage = [UIImage imageWithData:imageData];

 

posted @ 2015-01-05 12:41  shidaying  阅读(171)  评论(0编辑  收藏  举报