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

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

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

10-06 07:40
查看更多