开发者

I want to use an overlay for the UIImagePickerController, but I want the shutter animation

开发者 https://www.devze.com 2023-01-28 04:50 出处:网络
I am using the UIImagePickerController with an overlay view so I can have some custom controls.I notice that when the user clicks the \"Capture\" button and I call [imagePicker takePicture], the shutt

I am using the UIImagePickerController with an overlay view so I can have some custom controls. I notice that when the user clicks the "Capture" button and I call [imagePicker takePicture], the shutter animation doesn't occur. The effect is that I see the view sort of freeze and then continue in camera mode for a second before the image is captured and I display it over the camera view.

Make sense?

So, in other words, when the UIImagePickerController is initially presented, you see the shutter animation open up to reveal the camera, but when using overlay views and hiding camera controls, wh开发者_运维技巧en I take the picture I don't see it. Would really like to. :-(

Any ideas?


There is currently now way to do this with the built in UIImagePicker animation. You would have to use AVFoundation and roll your own capture animation whenever you take the picture

0

精彩评论

暂无评论...
验证码 换一张
取 消