ios - iOS7 相机拍照模式全屏

标签 ios ios7 uiimagepickercontroller fullscreen ios-camera

有没有办法在装有 iOS7.1 的 iPod 5gen 上设置相机照片模式全屏?当你要拍照时,照片模式不是全屏,只有视频模式是全屏,那么,有办法改变它吗? (我认为同样的问题一定会发生在 iPhone 5 及更高版本上)。

这是到目前为止我的代码,它显示控件,但部分显示,而不是全屏,并且控件与顶部对齐,因为相机控件已从 View 中删除:

self.picker = [[UIImagePickerController alloc] init];
self.picker.delegate = self;
self.picker.allowsEditing = NO;
self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
self.picker.showsCameraControls = NO;

//self.picker.mediaTypes = mediaTypes; //just for the record
self.picker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto;
self.picker.modalPresentationStyle = UIModalPresentationFullScreen;

self.picker.cameraOverlayView = [self buildOverlay]; //some custom views

[self presentViewController:self.picker animated:YES completion:NULL];

提前非常感谢您。

最佳答案

应用适当的 CGAffineTransform 转换来设置相机模式。

尝试以下链接,这可能会对您有所帮助:

here

关于ios - iOS7 相机拍照模式全屏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22776774/

相关文章:

ios - 在 Objective-C 中,当我不确定对象的类时如何调用对象的协议(protocol)选择器?

iphone - 奇怪的 UIAlertView 私有(private)方法崩溃 _performPopup

ios - 向后兼容 iOS 7 的 iPhone 纵向横向自适应 UI 示例

iOS - UIView 总是在前面,没有 BringSubviewToFront

iphone - UIImagePickerController 有时不会初始化相机 View

ios - 呃,解雇 uiviewcontrollers 和 imagePickerController

iphone - NIAttributedLabel-支持链接,同时保持控件的点击功能

iphone - 让 iOS 签名的应用程序在越狱设备上执行未签名的应用程序

ios - 自动布局未按预期工作

iphone - AVCam 与 UIImagepicker