我的图像选择器视图控制器设置在弹出控制器内.在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];
Run Code Online (Sandbox Code Playgroud)
我的应用仅使用横向模式,现在图像被旋转:
