iphone : how to stop shutter animation?

落爺英雄遲暮 提交于 2019-12-01 14:57:41

Using a UIImagePickerController, there's nothing you can do about that initial shutter animation. It's actually there to hide the startup time. You can switch to using the AVFoundation and getting an AVCaptureVideoPreviewLayer, which has no shutter animation, but you still get a latency between asking for the feed to start and it starting. I'm no hardware expert but I assume the delay is because the power management unit normally has that whole subsystem powered down.

Your code for showLibraryPicker looks more or less correct, though you may be calling presentModalViewController:animated: on the wrong actor. UIImagePickerController is a view controller, so if you haven't subclassed that (ie, the code you're writing is not itself part of the thing you have acting as a UIImagePickerController) then you'll want to do [pickerController presentModalViewController:...].

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!