How do I make an exact copy of a UIImage returned from a UIImagePickerController?

后端 未结 5 1973

I have divergent needs for the image returned from the iPhone camera. My app scales the image down for upload and display and, recently, I added the ability to save the imag

5条回答
  •  無奈伤痛
    2020-12-15 12:51

    UIImage *newImage = [UIImage imageWithData:UIImagePNGRepresentation(oldImage)];
    

提交回复
热议问题