ImagePickerController 中的cameraOverlayView 未显示,对吗?
我在 imagePickerController 中使用相机的自定义覆盖视图。当我拍照时,我会看到带有“重新拍摄”和“使用”按钮的预览。不幸的是,定制的cameraOverlayView在肖像模式下仍然存在,并且破坏了整个图片。有没有办法删除overlayView。我将overlayView添加为子视图,然后调用函数[selfpresentModalViewController:controlleranimated:YES]; 我还使用 -(void)imagePickerController:(UIImagePickerController *) 选择器 didFinishPickingMediaWithInfo:(NSDictionary *) info;之后。
我希望你能帮助我,因为过去两天我一直坚持这个问题,并且在网上没有找到任何有关它的信息。
谢谢, 尼古拉
I am using a customized overlay view for the camera in the imagePickerController. When I take the picture, I get a Preview with the "Retake" and "Use" buttons. Unfortunately, the customized cameraOverlayView is still there in a portrait mode and screws the whole picture. Is there a way to remove the overlayView. I added the overlayView as a subview and then called the function [self presentModalViewController:controller animated:YES];
I also use -(void)imagePickerController:(UIImagePickerController *) picker didFinishPickingMediaWithInfo:(NSDictionary *) info; later.
I hope you can help me with that because I have been stuck on that for the last two days and did not find any info on the web about it.
Thanks,
Nikola
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加视图时,请确保使用 [self.imagePickerController.cameraOverlayView addSubview:self.view];。
When you add you view make sure you are using [self.imagePickerController.cameraOverlayView addSubview:self.view];.