图像在iOS中旋转的横向模式下拍摄

时间:2013-06-19 16:24:17

标签: iphone ios5 uiimagepickercontroller landscape

我正在使用相机以人像模式呈现UIImagePickerController。我正在横向模式下捕捉图像。 UIImagePickerController将捕获的图像自动旋转90度。为什么这样做?如何保留原始捕获的图像?

1 个答案:

答案 0 :(得分:-1)

试试这个

UIImage* newImage = [UIImage imageWithCGImage:oldImage.CGImage scale:oldImage.scale orientation:UIImageOrientationUp];