title: Rotate UIImage (a lot harder than it should be)
body: <p>I have an app that uses the camera to take a picture and upload it to a server. The problem 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.</p>
  
  <p>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. </p>
  
  <p>Has anyone here encountered this and found a good solution?</p>
  
  <p>Thanks</p>