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 6156721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:39:33+00:00 2026-05-23T20:39:33+00:00

i have a little problem with dismissing my camera view. im using the UIImagePickerController

  • 0

i have a little problem with dismissing my camera view.
im using the UIImagePickerController with this code-

-(void)viewDidAppear:(BOOL)animated{
UIImagePickerController *picker=[[UIImagePickerController alloc]init];
picker.delegate=self;
picker.sourceType=UIImagePickerControllerSourceTypeCamera;
picker.showsCameraControls=NO;
[picker.cameraOverlayView addSubview:mirrorOverlay];
picker.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:picker animated:YES];
[picker release];}

im using a custom button to close the camera and change the view back to my main view using this code-

-(IBAction)flipBack:(id)sender{
[self dismissModalViewControllerAnimated:YES];

my problem is when im pressing the button the View flipout and then going back in and call the camera again.
i can’t find a way to dismiss the camera and the view.

Please help.
Thanks,
Amir.


Update:
Thanks for the help ! i figure it out !
my problem was that i was working with nib files of the camera, and when you want to use the camera in different way that was described on the delegate you should use View and not nib.

so my code was correct but in the wrong place and format.
Thanks all !

if someone need help with it, I’m here to help back !

  • 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-23T20:39:34+00:00Added an answer on May 23, 2026 at 8:39 pm

    you need to dismiss the picker, by the looks of it you’re dismissing the controller that presents the picker.

    -(IBAction)flipBack:(id)sender{
        [picker dismissModalViewControllerAnimated:YES];
    }
    

    You need to keep a reference to the picker in this case (e.g: add UIImagePicker *picker; as a member to your viewcontroller class).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have a little problem with this code: UITableViewCell *cell = (UITableViewCell *)[[button superview] superview];
I have a little problem with ~ in my paths. This code example creates
I have this little problem, that I cannot figure out which arguments to pass
I have a little problem with a query. I'm selecting data using the between
I have a little problem about using jQuery (I really do not know jQuery
i have little problem in using my application application having msaccess database if i
I have a little problem with following VHDL code: process (zbroji) begin if rising_edge(zbroji)
I have little problem with printing data like this, I have written script like
I have a little problem. When I'm using DataContractJsonSerializer with complex types(own types) it
Hey most of my issue has been solved but i have little problem This

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.