[英]How can i open the camera in the portrait mode only in IOS
Can anyone suggest a way of opening the camera in the portrait mode only in IOS. 谁能建议仅在IOS中以纵向模式打开相机的方法。 My case is like this - i have a parent view which is supporting both orientation. 我的情况是这样的-我有一个支持两个方向的父视图。 On top of this parent view i want to present a camera view controller in the portrait mode (independent of which mode the parent view is). 在此父视图的顶部,我想以纵向模式(独立于父视图的模式)呈现一个摄像机视图控制器。
Thanks in advance 提前致谢
Try implementing the following method in CameraController 尝试在CameraController中实现以下方法
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations.
return YES;}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.