When I try to capture an image in ios using UIImagePickerController, I do the following
- Check for camera access
- Present the image picker
- add logic in the delegate method - didFinishPickingMediaWithInfo.
However, after the image picker is presented, the user click on Camera Button. After that the image is loaded as preview with "Retake" and "Use Photo" as options. Only when I click on Use Photo does the didFinishPickingMediaWithInfo get invoked. I would like to get rid of the step for the user to confirm by clicking on Use Photo.
I would like to invoke didFinishPickingMediaWithInfo when the user clicks on the Camera Button.
Updated: A better to way to have more control over Camera is by using the AVFoundation.