image转文件

    UIImage  *image = self.imageCompainPhoto.image;

  NSData *imageData = UIImagePNGRepresentation(image);

  [imageData writeToFile:@"/Users/apple/desktop/123.png" atomically:YES];

posted @ 2015-10-10 15:52  Athook  阅读(142)  评论(0编辑  收藏  举报