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

  • Home
  • SEARCH
  • 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 8219927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:20:54+00:00 2026-06-07T13:20:54+00:00

I am currently writing an iOS app and do not like the speed at

  • 0

I am currently writing an iOS app and do not like the speed at which the UIImagePickerController disappears.

I call [self dismissModalViewControllerAnimated:YES]; the instant I am inside of - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info; And yet the imagePicker takes several moments to disappear, long enough on some photos that the app appears frozen to the user.

One solution I thought of was to just throw up a UIActivityIndicator infront of the UIImagePickerController but I have not figured out a way to accomplish this.

Thank you!

Edit: Any tips on how to save UIImages faster would help too I believe. Such as a way to do it asynchronously.

  • 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-07T13:20:56+00:00Added an answer on June 7, 2026 at 1:20 pm

    There is a great tutorial on doing this with grand central dispatch and code blocks by Ray Wenderlich :
    http://www.raywenderlich.com/1888/how-to-create-a-simple-iphone-app-tutorial-part-33
    You can also do this with a job queue and performSelector:onThread:withObject:waitUntilDone: if blocks are scary to you.

    Basically, the idea is to do the least amount of real work on the main thread, because that’s where the UI is drawn. Below is RW’s solution, with the status part commented out. That’s where you put an activity indicator.

    - (IBAction)addPictureTapped:(id)sender {
        if (self.picker == nil) {   
    
            // 1) Show status
            //[SVProgressHUD showWithStatus:@"Loading picker..."];
    
            // 2) Get a concurrent queue form the system
            dispatch_queue_t concurrentQueue =
            dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
    
            // 3) Load picker in background
            dispatch_async(concurrentQueue, ^{
    
                self.picker = [[UIImagePickerController alloc] init];
                self.picker.delegate = self;
                self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
                self.picker.allowsEditing = NO;    
    
                // 4) Present picker in main thread
                dispatch_async(dispatch_get_main_queue(), ^{
                    [self.navigationController presentModalViewController:picker animated:YES];    
                    [SVProgressHUD dismiss];
                });
    
            });        
    
        }  else {        
            [self.navigationController presentModalViewController:picker animated:YES];    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im currently writing an ios app which uses google map api's to measure driving
My company is currently writing an iOS app whereby we will display some of
I am currently writing a simple IOS app that saves tasks into a table.
I'm currently writing an iOS app and I have many records that I'm writing
I'm currently writing a mobile app (hopefully iOS or android) using the jquery mobile
Currently I'm writing an app for OSX which will eventually need to be ported
I'm currently writing an iOS app that uses a UIWebView for surfing around pages.
I'm writing an iOS module which currently sends an email asynchronously (using delegates). It
I am currently writing an iOS app with Xcode 4.3.2. In most parts of
I am writing an iOS 5 app which tracks a user's location in real-time,

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.