[英]iOS UIImagePickerControllerSourceTypeCamera fullscreen photo not capturing
I am implementing camera function in my app which will take photo. 我正在我的应用程序中实现相机功能,它将拍照。 But i can not take fullscreen image.
但是我不能拍摄全屏图像。 It shows me a rectangle to select the image area.
它显示了一个矩形来选择图像区域。
My source is like : 我的消息来源是:
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentViewController:picker animated:YES completion:NULL];
How to take a fullscreen image from camera ? 如何从相机拍摄全屏图像?
您更改下面的代码行,此代码允许全尺寸图片
picker.allowsEditing = NO;
Disable allowsEditing. 禁用allowsEditing。 This puts a rectangle to scale and crop the image.
这将放置一个矩形以缩放和裁剪图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.