我的图像选择器视图控制器设置在弹出框控制器内。在 iOS 6 上一切正常,但在 iOS 7 上,图像被旋转并且所有移动都在做诗:当 iPad 向左转动时图像向下,向上移动时图像向左等等。
这是显示我的相机的代码:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
objPopView = [[UIPopoverController alloc] initWithContentViewController:imagePicker];
[objPopView presentPopoverFromRect:CGRectMake(842, 163, 0, 0)
inView:self.view
permittedArrowDirections:UIPopoverArrowDirectionRight
animated:YES];
我的应用仅使用横向模式,现在图像已旋转: