如何在iPhone / ios / ipad中更改摄像机的方向以改变设备?

时间:2014-06-27 08:15:59

标签: ios iphone camera uitabbarcontroller tabbar

我有tabbar作为Root控制器。当我从视图控制器中选择摄像机然后它在纵向模式下打开,然后我改变它的方向,但它仍处于纵向模式,当拾取视图被解除并再次将主视图控制器更改为横向mpde时,所有5个tabbar项目显示在左侧。因此看起来所有tabbar项目图标都会受到干扰。当手机方向改变时,任何人都可以帮助改变相机方向吗?

            if (self.pickerView) {
                self.pickerView = nil;
            }
            self.pickerView = [[UIImagePickerController alloc] init];
            self.pickerView.delegate = self;
            self.pickerView.sourceType = UIImagePickerControllerSourceTypeCamera;
            self.pickerView.showsCameraControls = YES;
            self.pickerView.wantsFullScreenLayout = YES;
            self.pickerView.navigationBarHidden = YES;
            self.pickerView.toolbarHidden = FALSE;
            self.pickerView.allowsEditing=YES;
            [self presentViewController:self.pickerView animated:YES completion:NULL];

0 个答案:

没有答案