Iphone UIImagePicker旋转问题

Iphone UIImagePicker旋转问题,iphone,rotation,uiimagepickercontroller,landscape,Iphone,Rotation,Uiimagepickercontroller,Landscape,我已在我的应用程序中使用以下设置UIIMagePicker: imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera; imagePickerController.modalPresentationStyle = UIModalPresentationF

我已在我的应用程序中使用以下设置UIIMagePicker:

    imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
    imagePickerController.modalPresentationStyle = UIModalPresentationFullScreen;
    imagePickerController.showsCameraControls = NO;
    imagePickerController.navigationBarHidden = YES;
    imagePickerController.toolbarHidden = YES;
    imagePickerController.wantsFullScreenLayout = YES;
    //imagePickerController.cameraViewTransform =  CGAffineTransformScale(imagePickerController.cameraViewTransform, 1.0, 1.3);
    imagePickerController.delegate = self.overlayView;
    [self.view addSubview:imagePickerController.view];
    imagePickerController.cameraOverlayView =self.overlayView.view;
当应用程序处于纵向模式时,一切正常。然而,如果我在横向旋转它,就会出现一个奇怪的问题:右侧会出现一个黑条,视图会“旋转”,也就是说,如果我向上移动iPhone,图像会移动到一侧,反之亦然

如果我以横向模式启动,黑色条不会出现,相反,当我旋转到底部的纵向模式时,黑色条会出现,但有趣的旋转行为仍然会发生。 在这两种情况下,覆盖屏幕似乎填满了屏幕,也正确处理了旋转

可能存在什么问题以及如何解决


谢谢,Fabrizio

在运行iOS 8.0.2的iPad设备上,我也面临着类似的问题。你找到解决这个问题的方法了吗?没有,我最终限制了肖像模式的使用,这当然是一个遗憾。