Ios UIImagePickerController摄像头自动将图像转换为图像

Ios UIImagePickerController摄像头自动将图像转换为图像,ios,uiimagepickercontroller,uiimageorientation,Ios,Uiimagepickercontroller,Uiimageorientation,我已经调用了UIImagePickerController来拍照,但每次我拍照时,相机都会自动将图像转换为纵向向上,尽管我想按拍摄方向拍摄图像 在didFinishPickingMediaWithInfo方法中,每次返回的图像都具有方向UIImageOrientationUp 在我的父控制器中,我有以下代码: -(BOOL)shouldAutorotate { return YES; } -(NSUInteger)supportedInterfaceOrientations {

我已经调用了
UIImagePickerController
来拍照,但每次我拍照时,相机都会自动将图像转换为纵向向上,尽管我想按拍摄方向拍摄图像

didFinishPickingMediaWithInfo
方法中,每次返回的图像都具有方向
UIImageOrientationUp

在我的父控制器中,我有以下代码:

-(BOOL)shouldAutorotate
{
    return YES;
}

-(NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}

要在上载时旋转UIImage以正确显示,可以使用以下类别:

UIImage+fixOrientation.h