iPhone UIImagePicker相机在横向 [英] iPhone UIImagePicker Camera in Landscape Orientation

查看:149
本文介绍了iPhone UIImagePicker相机在横向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么好的方法设置 UIImagePicker 到横向?我尝试在 presentModalViewController 之后调用 setStatusBarOrientation ,如下所示:

Is there any good way to set UIImagePicker to landscape orientation? I tried to call setStatusBarOrientation after presentModalViewController like following,

[self presentModalViewController:picker animated:YES];

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

但是,右侧的视频时长视图(00:00)改变。

However, the video duration view (00:00) on the right corner didn't rotate as orientation changed.

推荐答案

不幸的是,根据文档,图片选择器仅支持纵向模式。

Unfortunately, according to the documentation, the image picker only supports portrait mode.

这篇关于iPhone UIImagePicker相机在横向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆