OGeek|极客世界-中国程序员成长平台

标题: ios - iOS7相机拍照模式全屏 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 09:06
标题: ios - iOS7相机拍照模式全屏

有没有办法在装有 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];

非常感谢您。



Best Answer-推荐答案


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

试试下面的链接,这可能对你有帮助:

here

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






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4