Search code examples
iosios5uiimagepickercontroller

UIImagePickerController avoiding the use/retry view after picture taken without disabling other controls


I'd like to avoid the use/retry view after the picture is taken without disabling the default Apple camera controls that let me take the picture.

Doing this:

imagePicker.showsCameraControls = NO;

Causes ALL the camera controls to disappear. Is there any other method?


Solution

  • Unfortunately there is no proper way to do this provided by Apple. So here are you options:

    1. showCameraControls = NO and adding your own controls.
    2. go hardcore and use AVFoundation - but again you'll need your own controls - probably not what you're looking to do but if you're interested I have a sample app of this here:

    https://github.com/Shein/CameraFeedUnderlay

    1. Hack around it - place YOUR OWN button on top of camera control play button and override the action to take the picture as you would without camera controls and directly dismiss the UIImagePickerController.

    There's a sort-of example of this solution here:

    iPhone SDK - How to disable the picture preview in UIImagePickerController?