I am using the following code to save and load images that I pick from either the library or take using the camera:
//saving an image - (void)saveImage:(UIIm
The root cause is PNG format doesn't have image orientation information, but JPEG format does. So the easiest way to solve this problem is saving your file in JPEG format using UIImageJPEGRepresentation()