简体   繁体   English

我想为UIImagePickerController使用叠加层,但我想要快门动画

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

I am using the UIImagePickerController with an overlay view so I can have some custom controls. 我正在使用UIImagePickerController和覆盖视图,所以我可以有一些自定义控件。 I notice that when the user clicks the "Capture" button and I call [imagePicker takePicture], the shutter animation doesn't occur. 我注意到当用户点击“捕获”按钮并调用[imagePicker takePicture]时,不会发生快门动画。 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, when I take the picture I don't see it. 因此,换句话说,当最初呈现UIImagePickerController时,您会看到快门动画打开以显示相机,但是当使用叠加视图和隐藏相机控件时,当我拍摄照片时我看不到它。 Would really like to. 真的很想。 :-( :-(

Any ideas? 有任何想法吗?

There is currently now way to do this with the built in UIImagePicker animation. 目前,现在有了内置UIImagePicker动画的方法。 You would have to use AVFoundation and roll your own capture animation whenever you take the picture 每当拍照时,您都必须使用AVFoundation并滚动自己的捕捉动画

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

相关问题 隐藏快门动画UIImagePickerController - HIde shutter animation UIImagePickerController 我想了解有关在UIImagePickerController示例代码中使用的CoreData的一些知识 - I want to know something about CoreData using in UIImagePickerController sample code 我想将imageview与动画放置在不同的位置 - I want to place imageview at different position with animation 我想在 NSDate 中使用字符串 - I want to use string into NSDate 我想创建一个iPhone纸牌游戏。 我应该使用Core动画还是Cocoa 2D? - I want to create an iPhone card game. Should I use Core animation or Cocoa 2D? 我想使用动画通过UIanimationtransitioncurl向右或向左进行图像查看。 可能吗? - I want to use animation to imageview using UIanimationtransitioncurl right or left. Is it possible? iPhone UIImagePickerController问题:按下“使用”按钮后想要显示UIActivityIndi​​catorView - iPhone UIImagePickerController problem: want to show UIActivityIndicatorView after hit “Use” button UIImagePickerController照片快门无法打开 - UIImagePickerController photos shutter not opening 在UIImagePickerController中隐藏快门 - Hide Shutter in UIImagePickerController 我想在ios中的自定义视图单元上执行动画 - I want to perform the animation on the custom view cell in ios
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM