1

I have called a UIImagePickerController to take a photo but every time I take a photo, the camera automatically convert the image to portrait up although I want to take the image in the orientation it was taken.

In the didFinishPickingMediaWithInfo method, the returned image has the orientation UIImageOrientationUp every time.

In my parent controller, I have the following code:

-(BOOL)shouldAutorotate
{
    return YES;
}

-(NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}
4

1 回答 1

1

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

UIImage+fixOrientation.h

这里

于 2014-03-31T10:45:37.310 回答