Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 622559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:59:52+00:00 2026-05-13T18:59:52+00:00

Is there any way to disable the image preview after taking a picture with

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:59:52+00:00Added an answer on May 13, 2026 at 6:59 pm

    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

    @class OverlayView;
    
    @interface ViewController //bla bla...
    {
    UIImagePickerController * picker;
    UIToolbar *toolBar;
    OverlayView *overlayView; 
    }
    

    I created the controls of the toolbar a camera button and the cancel button

    // toolbar - handy if you want to be able to exit from the image picker...
                toolBar=[[[UIToolbar alloc] initWithFrame:CGRectMake(0, 480-55, 320, 55)] autorelease];
                toolBar.barStyle =  UIBarStyleBlackOpaque;
                NSArray *items=[NSArray arrayWithObjects:
                                [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel  target:self action:@selector(cancelPicture)] autorelease],
                                [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace  target:nil action:nil] autorelease],
                                [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCamera  target:self action:@selector(shootPicture)] autorelease],
                                [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace  target:nil action:nil] autorelease],
                                [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace  target:nil action:nil] autorelease],
                                nil];
                [toolBar setItems:items];
    
                // create the overlay view
                overlayView=[[[OverlayView alloc] initWithFrame:CGRectMake(0, 0, 320, 480-44)] autorelease];
                // important - it needs to be transparent so the camera preview shows through!
                overlayView.opaque=NO;
                overlayView.backgroundColor=[UIColor clearColor];
    
                        // parent view for our overlay
            UIView *parentView=[[[UIView alloc] initWithFrame:CGRectMake(0,0,320, 480)] autorelease];
            [parentView addSubview:overlayView];
            [parentView addSubview:toolBar];
    
            // configure the image picker with our overlay view
            picker=[[UIImagePickerController alloc] init];
            picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    
            // hide the camera controls
            picker.showsCameraControls=NO;
            picker.wantsFullScreenLayout = YES;
    

    The cancel method

    - (IBAction)cancel {
        // Don't pass current value to the edited object, just pop.
        [self.navigationController popViewControllerAnimated:YES];
    }
    

    The (shootPictureMethod):

    -(void) shootPicture {
    
        [picker takePicture];
    
    }
    

    To exit without showing preview just dismiss the view after taking the picture in the didFinishPickingImage method

    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)editInfo 
    {
    //do whatever
    
    [self dismissModalViewControllerAnimated:YES];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to disable entire form using jQuery after submission?
Is there any way to disable the sound when the user is typing on
Is there any way to disable sleep of android mobile phone when user is
Is there any way to disable localization in an Android application? It must use
Is there any way to disable certain metrics from selected packages in Sonar? I
Is there any way to disable all input fields in an div container with
is there any way to disable a feature in the featuretree of Wix, when
I created a samble checkbox: <mx:CheckBox label=checkbox/> Is there any way to disable checkbox
Is there any way to completely disable Siri within the app? I am not
When searching, is there a way to disable scoring for any query? The scenario

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.