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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:41:48+00:00 2026-06-12T10:41:48+00:00

There is a great wiki about image loading from the camera picker . Which

  • 0

There is a great wiki about image loading from the camera picker. Which made me aware of costs of taking an image at full resolution.

At the moment, when a photo is picked, I push a new view controller and display the image at full resolution. Pushing the view is a really slow and choppy experience (about 1 fps!) that I want to smooth out. Comparing to picking a photo on Instagram, I notice that they use a low resolution image and later swap in the full image. (I need the full res image because the user should be able to zoom and pan)

The idea I want is somthing like this:

- (void)imagePickerController:(UIImagePickerController *)picker
        didFinishPickingMediaWithInfo:(NSDictionary *)info 
{

    UIImage* fullImage = [info objectForKey:UIImagePickerControllerOriginalImage];

    // Push a view controller and give it the image.....
}

- (void) viewDidLoad {

    CGSize smallerImageSize = _imageView.bounds;
    UIImage* smallerImage = [MyHelper quickAndDirtyImageResize:_fullImage     
                                                        toSize:smallerImageSize];

    // Set the low res image for now... then later swap in the high res
    _imageView.image = smallerImage;

    // Swap in high res image async
    // This is the part im unsure about... Im sure UIKit isn't thread-safe!
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, NULL), ^{
        _imageView.image = _fullImage;
    });
}

I think that UIImage isn’t memory mapped in until it is used. Therefore it dons’t slow things down until its given to the imageView. Is this correct?

I think image decoding is already done asynchronously by the system, however, it is sill slowing the phone down considerably while its loading.

Is there a way do perform some of the work required to display an image in a very low priority background queue?

  • 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-12T10:41:49+00:00Added an answer on June 12, 2026 at 10:41 am

    You’re trying to do things the most complicated way 🙂
    Why not just prepare the small image before pushing the view controller and pass it to them? Look at this code:

    - (void)imagePickerController:(UIImagePickerController *)picker
            didFinishPickingMediaWithInfo:(NSDictionary *)info 
    {
    
        UIImage *fullImage = [info objectForKey:UIImagePickerControllerOriginalImage];
        UIImage *smallImage = [fullImage imageScaledToSize:self.view.bounds];
    
        // Push a view controller and give it BOTH images
    }
    
    // And in your pushed view controller
    
    - (void)viewDidLoad
    {
        _imageView.image = self.smallImage;
    }
    
    - (void)viewDidAppear:(BOOL)animated
    {
        [super viewDidAppear:animated];
    
        _imageView.image = self.fullImage;
    }
    

    The main thing is that viewDidAppear: will be called right after the animation is done so you can switch images here without any worries.

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

Sidebar

Related Questions

There is a great article about multiple light sources in GLSL http://en.wikibooks.org/wiki/GLSL_Programming/GLUT/Multiple_Lights But light0
i know nothing about medical records but im sure there's great opportunity in it
I know a great thing about perl is that there's multiple ways of doing
Taking an example of Fibonacci Series from the Clojure Wiki, the Clojure code is
Is there any great tutorial out there on how to create rain in GLSL
WPF is great because there are many ways to achieve your goals. For example,
Currently I use mysql and phpMyAdmin, I was wondering if there is as great
. Hello, I'm using jqueryui's datepicker, and it works great but there's a problem.
There are a lot of great open-source projects on github. Most of them come
While there are a handful of great programs for ISV Startups (BizSpark, Emplower ISV,

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.