UIImageOrientationRight(left) won't work
<p>I want to pick a photo from UIImagePickerController and check the photo if it is landscape. if selected photo is landscape, I want to rotate to portrait.
so, here is my code</p>

<pre><code>- (void)imagePickerController:(UIImagePickerController *)picker 
        didFinishPickingImage:(UIImage *)image
                  editingInfo:(NSDictionary *)editingInfo {

    if(image.imageOrientation == UIImageOrientationRight || image.imageOrientation == UIImageOrientationLeft){

        UIImage *retatedImg = [image imageRotatedByDegrees:90];

    }else {
        UIImage *retatedImg = image;

    }
}
</code></pre>

<p>I'm sure [imageRotatedByDegrees:] method is working fine. Just stuck why it does not recognize landscape photo. help me!</p>
