我的图像选择器视图控制器设置在弹出控制器中。在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];
我的应用程序仅使用横向模式,现在图像被旋转了: