简体   繁体   English

隐藏快门动画UIImagePickerController

[英]HIde shutter animation UIImagePickerController

I want to hide animation that shows shutter opening while presenting UIImagePickerController to take picture. 我想隐藏展示UIImagePickerController拍照时打开快门的动画。 I checked this question for the same which contains the accepted but I was unable to replicate that functionality in my controller. 我检查了该问题是否包含已接受的问题 ,但无法在控制器中复制该功能。

I gave overlayView as self.view and when I hide PLCameraView it shows blank white portion and than I am able to take picture. 我给overlayView作为self.view,当我隐藏PLCameraView时,它显示空白部分,然后我就可以拍照了。 Is there any way to remove that white portion ? 有什么方法可以去除白色部分吗?

IF needed I can post my full sourcecode project... 如果需要,我可以发布完整的源代码项目...

Can some body please highlight how to do this ? 可以请一些身体突出该怎么做吗?

Edit: 编辑:

What I want to do is based on certain event and conditions I want to place image taken from camera or default image in db. 我想要做的是基于某些事件和条件,我想将从相机拍摄的图像或默认图像放置在db中。 And picture taking doesn't involve user interaction so I put NSTimer and take snapshot with the help of takePicture method. 而且拍照不涉及用户交互,因此我放置了NSTimer并在takePicture方法的帮助下进行了快照。

Any thoughts ? 有什么想法吗 ?

Instead of messing about with the view hierarchy of UIImagePickerController (which you are forcefully warned against in the docs) you should probably use AVCaptureSession and create your own ImagePicker to capture raw images from the video feed. 您应该使用AVCaptureSession并创建自己的ImagePicker来捕获来自视频提要的原始图像,而不是弄乱UIImagePickerController的视图层次结构(在文档中强烈警告您)。

See http://developer.apple.com/library/ios/#samplecode/AVCam/Listings/Classes_AVCamCaptureManager_m.html for hints. 有关提示,请参见http://developer.apple.com/library/ios/#samplecode/AVCam/Listings/Classes_AVCamCaptureManager_m.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM