Is there any way to disable the image preview after taking a picture with the UIImagePickerController? I want to dismiss the ImagePicker as soon as the user pressed the shutter release button.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I asked a similar question here
My solution was to create a customized view on top of the default UIImagePickerControllerView.
I downloaded the example Augmented Reality
Then you can use the OverlayView.m and OverlayView.h by adding them to your project:
I made the custom picker toolbar, picker and overlayView global so that I can access them anywhere in the project.
In your ViewController.h
I created the controls of the toolbar a camera button and the cancel button
The cancel method
The (shootPictureMethod):
To exit without showing preview just dismiss the view after taking the picture in the didFinishPickingImage method