How do I make an exact copy of a UIImage returned from a UIImagePickerController?
问题 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 image to the Photos app. At first I was assigning the returned value to two separate variables, but it turned out that they were sharing the same object, so I was getting two scaled-down images instead of having one at full scale. After figuring out that you can't do UIImage *copyImage = [myImage copy]; , I made a copy using