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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:13:46+00:00 2026-06-04T04:13:46+00:00

I am new to iPhone development. I am working with image picker controller in

  • 0

I am new to iPhone development. I am working with image picker controller in which I want to move and scale the image that picked from the photo library, so I enabled the allowsediting = yes.

And my picker did finish method:

 - (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
    // Access the uncropped image from info dictionary

    UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
    self.imgForDisplay.image=[self scaleAndRotateImage:image];
    self.imagePicker.allowsEditing = YES;


    ImageDetailsViewController *imageDetailsVC = [[ImageDetailsViewController alloc] init];
    imageDetailsVC.imagedisplay.image = self.imgForDisplay.image;
    [picker pushViewController:imageDetailsVC animated:YES];



//[picker dismissModalViewControllerAnimated:YES];

}

and I push another view controller where I want to show the Image picked.

Here I have two problems:

1) When I select the image, its navigating to another view without “move and scaling” screen but the image is now displayed in the ImageDetailsViewController when it navigates.

2) When I again navigate back and pick another image, now it shows the “move and scaling” screen. When I click the choose button, it is simply showing a white screen with out navigation bar.

Is there any way to set the action for the choose 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-06-04T04:13:47+00:00Added an answer on June 4, 2026 at 4:13 am

    I too face the same problem i solved it by using the by using the code, go through this it will be usefull.

     - (void)imagePickerController:(UIImagePickerController *)picker  
        didFinishPickingMediaWithInfo:(NSDictionary *)info { 
            self.lastChosenMediaType = [info objectForKey:UIImagePickerControllerMediaType]; 
            if ([lastChosenMediaType isEqual:(NSString *)kUTTypeImage]) { 
                UIImage *chosenImage = [info objectForKey:UIImagePickerControllerEditedImage]; 
                UIImage *shrunkenImage = shrinkImage(chosenImage, imageFrame.size); 
                self.image = shrunkenImage; 
            } else if ([lastChosenMediaType isEqual:(NSString *)kUTTypeMovie]) { 
                self.movieURL = [info objectForKey:UIImagePickerControllerMediaURL]; 
            } 
    
            ImageSelectionView *imageSelectionVC = [[ImageSelectionView alloc] init];
            imageSelectionVC.theImage = image;
            [picker pushViewController:imageSelectionVC animated:YES];
            imageSelectionVC.dismissDelegate =self;
    
    
           // [picker dismissModalViewControllerAnimated:YES]; 
        } 
    

    ‘

    -(void)updateDisplay { 
        if ([lastChosenMediaType isEqual:(NSString *)kUTTypeImage]) { 
            imageView.image = image; 
            imageView.hidden = NO; 
            moviePlayerController.view.hidden = YES; 
        } else if ([lastChosenMediaType isEqual:(NSString *)kUTTypeMovie]) { 
            [self.moviePlayerController.view removeFromSuperview]; 
            self.moviePlayerController = [[MPMoviePlayerController alloc] 
                                           initWithContentURL:movieURL] ; 
            moviePlayerController.view.frame = imageFrame; 
            moviePlayerController.view.clipsToBounds = YES; 
            [self.view addSubview:moviePlayerController.view]; 
            imageView.hidden = YES; 
        } 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am pretty new to iPhone development and currently working on an application which
I am new to iphone development and want to know that how to publish
I am new to iPhone development.Currently I am working on an application in which
I'm new to iPhone development. I'm working on a table view (default UITableView subclass)
I am fairly new to iPhone development. Right now, I am working on an
I am new to iphone development.I want to add RegexKitLite framework.I have downloaded the
New to iPhone development and working through exercises and examples to get me up
I am new to iPhone development and I am currently working on a simple
Very new to Iphone development here, I have a project which is successfully building
hello all i am new to iphone development i am working on a application

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.