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. Necessarily I've been using the UIImagePickerController
class.
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 开发者_JS百科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.
Your clues & boos are all welcome!
You probably wont be able to do it with UIImagePickerController
... However, look at 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
. Additionally, AVCaptureStillImageOutput
allows you to grab images from the current camera session asynchronously... I hope this helps!
精彩评论