gpt4 book ai didi

ios - iOS7 上的相机照片模式全屏

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:06:42 57 4
gpt4 key购买 nike

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

57 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com