Rotate UIImage (a lot harder than it should be)
I have an app that uses the camera to take a picture and upload it to a server. The pro开发者_高级运维blem is once it gets to the server it is rotated. I know this is related to the EXIF meta data on the image that rotates it in the iPhone.
I've tried a few solutions found here at StackOverflow and I also tried putting the image into an imageView then drawing the image with UIImageJPEGRepresentation. Nothing seems to get the job done.
Has anyone here encountered this and found a good solution?
Thanks
精彩评论