[英]UIImagePickerController: how to take >1 photo?
I've been trying to build a UI that's as similar as possible to the built in iPhone 'camera' app as possible. 我一直在努力构建尽可能与内置iPhone“相机”应用程序尽可能相似的UI。 Necessarily I've been using the
UIImagePickerController
class. 我一直在使用
UIImagePickerController
类。
It imposes on me two constraints that I wish to overcome... 它给我带来了两个我希望克服的限制因素......
I'd like to be able to take more than one photo (currently mine takes one then comes to a sudden stop. 我希望能够拍摄多张照片(目前我拍的照片会突然停止拍摄。
I wish to skip the 'photo verification' stage where the photo/movie can be vetted by the user before committing it to the photo library. 我希望跳过“照片验证”阶段,用户可以在将照片/电影提交到照片库之前对其进行审查。
Both of these are currently beyond me, and I know they're both possible as 'ClearCam' on the store does it perfectly. 这两个目前都超出了我的范围,我知道它们都是可能的,因为商店里的'ClearCam'完美无缺。
Your clues & boos are all welcome! 你的线索和嘘声都是受欢迎的!
You probably wont be able to do it with UIImagePickerController
... However, look at AVFoundation `. 您可能无法使用
UIImagePickerController
...但是,请查看AVFoundation` 。 You will have much more control over the camera and its actions, and you can use it to take more than one still image at a time with no interruption. 您可以更好地控制相机及其操作,并且可以使用它一次拍摄多张静止图像而不会中断。
Specifically, look at AVCaptureDevice
, AVCaptureInput
and the subclasses of AVCaptureOutput
. 具体来说,看
AVCaptureDevice
, AVCaptureInput
和子类AVCaptureOutput
。 Additionally, AVCaptureStillImageOutput
allows you to grab images from the current camera session asynchronously... I hope this helps! 此外,
AVCaptureStillImageOutput
允许您异步从当前相机会话中获取图像...我希望这有帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.