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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:33:59+00:00 2026-05-20T17:33:59+00:00

I have a UITableView with a list of items, each having it’s own image.

  • 0

I have a UITableView with a list of items, each having it’s own image. I thought Apple’s LazyTableImages sample project would be perfect to learn from, and use to implement the same kind of process of downloading images asynchronously, after the original list data is retrieved.

For the most part, it works quite well, except I did notice a subtle difference in behavior, between this sample app, and how the actual app store downloads images.

If you launch the LazyTableImages sample, then do a quick flick-scroll down, you’ll see that the images do not get displayed until after the scrolling comes to a complete stop.

Now, if you do the same test with a list of items in the actual app store, you’ll see that the images start displaying as soon as the new items come into view, even if scrolling hasn’t stopped yet.

I’m trying to achieve these same results, but so far I’m not making any progress. Does anyone have any ideas on how to do this?

Thanks!

  • 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-20T17:33:59+00:00Added an answer on May 20, 2026 at 5:33 pm

    I’m baffled that nobody could answer this…

    So, I eventually figured out how to acheive the exact same effect that is used in the actual app store, in regards to how the icons are downloaded/displayed.

    Take the LazyTableImages sample project and make a few simpled modifications.

    1. Go into the root view controller and remove all checks regarding is table scrolling and/or decelerating in cellForRowAtIndexPath

    2. Remove all calls to loadImagesForOnScreenRows, and thus remove that method as well.

    3. Go into IconDownload.m and change the startDownload method to not do an async image downlaod, but instead do a sync download on a background thread. Remove all the code in startDownload, and add the following, so it looks like this:

    
    - (void)startDownload
    {
        NSOperationQueue *queue = [NSOperationQueue new];
        NSInvocationOperation *operation = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(loadImage) object:nil];
    
        [queue addOperation:operation];
    
        [operation release];
        [queue release];
    }
    
    

    Then, add a loadImage, like this:

    
    - (void)loadImage
    {
        NSData *imageData = [[NSData alloc] initWithContents OfURL:[NSURL URLWithString:appRecord.imageURLString]];
        self.apprecord.appIcon = [UIImage imageWithData:imageData];
        [imageData release];
    
        [self performSelectorOnMainThread:@selector(notifyMainThread) withObject:nil waitUntilDone:NO];
    }
    
    

    Then, add notifyMainThread like this:

    
    - (void)notifyMainThread
    {
        [delegate appImageDidLoad:self.indexPathInTableView];
    }
    
    

    Done! Run it, and you will see the exact app store behavior, no more waiting to request image downloads until scrolling stops, and no more waiting for images to display until scrolling stops, or until user has removed their finger from the screen.

    Images are downloaded as soon as the cell is ready to be displayed, and the image is displayed as soon as it is downloaded, period.

    Sorry for any typos, I didn’t paste this from my app, I typed it in, since I’m away from my mac right now…

    Anyway, I hope this helps you all…

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

Sidebar

Related Questions

I have a UITableView with a list of items. Selecting an item pushes a
I have a UITableView displaying a list of Cities. I want to separate them
I have a list of items, and in a modal view controller, i have
I have an iPhone app that utilizes TableView to list tagged items that the
I have an UITableView which includes a list of UITableViewCells. And I set the
I have a UITableView that represents a list of objects, I'd like the user
I have a UITableView with 2 sections. The section 0 contains a list of
I have a UITableView with cells. The table view shows a list of downloaded
I have a UITableView cell that is going to have a variable size depending
I have got an UITableView. How to simply fill it with three elements, for

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.