iPad相机定位肖像模式? [英] iPad camera orientation portrait mode?

查看:120
本文介绍了iPad相机定位肖像模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将iPad相机应用方向设置为仅纵向模式。从viewController我们大多数时候都会把它放在横向模式中。有没有办法我们可以将相机模式设置为仅肖像?
赞:

I want to set the iPad camera app orientation to only portrait mode. From the viewController we'll put it in landscape mode most of the time. Is there a way we can set the camera mode to only portrait? Like:

imagePickerController setOrientation: UIInterfaceOrientationPortrait

提前致谢。

推荐答案

我认为我们无法控制相机的方向。它的方向属性是内置的,随着设备的方向而变化。

I don't think we can control orientation of camera.Its orientation property is inbuilt,which changes with orientation of device.

选择器的方向是只读属性。

Orientation of picker is read only property.

请纠正我,如果我错了

这篇关于iPad相机定位肖像模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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