You can use myImage.imageOrientationone that will give you a UIImageOrientation,
- EXIF imagePickerController: didFinishPickingMediaWithInfo:.
[info objectForKey: @ "" ];
. UIImageOrientation, .
- (UIImageOrientation)orientationFromEXIF:(int)exif
{
UIImageOrientation newOrientation;
switch (exif)
{
case 1:
newOrientation = UIImageOrientationUp;
break;
case 3:
newOrientation = UIImageOrientationDown;
break;
case 8:
newOrientation = UIImageOrientationLeft;
break;
case 6:
newOrientation = UIImageOrientationRight;
break;
case 2:
newOrientation = UIImageOrientationUpMirrored;
break;
case 4:
newOrientation = UIImageOrientationDownMirrored;
break;
case 5:
newOrientation = UIImageOrientationLeftMirrored;
break;
case 7:
newOrientation = UIImageOrientationRightMirrored;
break;
}
return newOrientation;
}
.imageOrientation