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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:05:43+00:00 2026-05-27T13:05:43+00:00

I have a table view which displays potentially hundreds of image thumbnails. The problem

  • 0

I have a table view which displays potentially hundreds of image thumbnails. The problem I’m having is the lag when scrolling quickly.

I’ve seen lots of tutorials for lazy loading remote images but nothing for local images.

Does anyone have any suggestions or examples on how I can improve the UI speed with loading many images.

Thanks

Dann

  • 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-27T13:05:44+00:00Added an answer on May 27, 2026 at 1:05 pm

    When you have remote images typically you schedule an async network call that takes time to finish and this usually doesn’t impact with the table view refreshing due to the fact that the network job is done on a separate thread (unless you queue hundreds of network calls, that will slow down the whole system!)
    When you work with local images typically you do the image loading from file system directly in the table view datasource

    tableView:cellForRowAtIndexPath:

    method which is executed by the table as soon as a new cell needs to be displayed. So having the image stored locally you’re tempted to load it immediately in the main thread, and this results in the scrolling issue.

    But UITableView is a UIScrollView subclass and then it responds to UIScrollViewDelegate messages check this stackoverflow answer. So with a proper monitoring of these methods (e.g. the accelerating/decelerating and dragging ones) you can fine tune your image loading. This means that while the table is scrolling at full speed is not recommended to load any image, but as soon the table is not scrolling, or it is decelerating or it is just dragged (with the touch) you can try to load images. Typically the critical event is when the user ends dragging and the scrolling is at its max speed (there is a delegate method for this). You should study and understand very well these methods as they allow you to carefully track the scrolling events and based on them you can experiment and fine tune your image loading.

    Another recommendation is that once loaded from file system you cache the image (using system cache or some cache of yours; in such case be aware with memory warnings!). You will be able to free this cache as soon as you get a memory warning as all images are already retained by the table view cell.

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

Sidebar

Related Questions

i have created a table view which displays database fields.i need to add a
In my app I have a table view, which displays a set of data,
I have a simple table view which is editable. All I need the user
I have a table view controller which doesn't let me manually scroll to the
I have a view table which is a union of two separate tables (say
When I have a table view with some sections which have their own headers
I have a navigation controller which also has a table view. I want to
I have a table view which presents a UIViewController whenever a row is tapped
I have a UITableViewController, which is RootViewController. It's XIB only has a table view.
Hi I have a view which displays Invoices and InvoiceLines . @model VectorCheck.ViewModels.InvoiceViewModel @{

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.