iPhone UIImagePicker横向摄像头

iPhone UIImagePicker横向摄像头,iphone,camera,orientation,landscape,Iphone,Camera,Orientation,Landscape,有没有什么好方法可以将UIImagePicker设置为横向?我试着在presentModalViewController之后调用SetStatusBaroOrientation,如下所示 [self presentModalViewController:picker animated:YES]; [[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight ani

有没有什么好方法可以将
UIImagePicker
设置为横向?我试着在presentModalViewController之后调用
SetStatusBaroOrientation
,如下所示

[self presentModalViewController:picker animated:YES];

[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight animated: NO ];

但是,右角的视频持续时间视图(00:00)没有随着方向的改变而旋转

不幸的是,根据,图像采集器只支持纵向模式。

苹果不支持相机视图的横向模式。如果您想要任何显示为自定义的内容,请在其上添加覆盖视图,并将该视图转换为横向视图。
@注意:-叠加也被添加为纵向,这就是为什么需要转换。

我能够使用以下代码创建横向摄影机视图:

[self.view insertSubview:self.imagePicker.view atIndex:0];

self.imagePicker.view.transform =  
    CGAffineTransformScale (
                            CGAffineTransformTranslate(
                            CGAffineTransformMakeRotation(M_PI/2), -90, -15),
                            1.2,1.2)
                            ;
请注意,我直接将imagePicker的视图添加到当前视图中,而不是将其作为模式调用

self.imagePicker.view.transform
似乎对所有
CGAffineTransform
函数调用都做出了预期的响应,尽管我无法说明苹果是否同意这种方法