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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:16:56+00:00 2026-06-08T15:16:56+00:00

I have a table that displays images. It can be searched live, which adjusts

  • 0

I have a table that displays images. It can be searched live, which adjusts the cells being displayed. The images are loaded in the background using a concurrent NSOperation subclass over the network when the image is not already immediately available.

After the image has been fetched, I want to update the table to display it.

How can I update the right cell?

  • I cannot rely on the cell that I have built in tableView:cellForRowAtIndexPath:, because the cell may have been repurposed for another row.
  • I cannot rely on the indexPath passed into tableView:cellForRowAtIndexPath:, because it may have changed since the update began due to a search term change.
  • I cannot search the visible cells in the table, because the cells themselves are instances of UITableViewCell and have no metadata.
  • I cannot search my filtered list, because I don’t know what table to apply the changes to.

What am I missing?

  • 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-08T15:16:59+00:00Added an answer on June 8, 2026 at 3:16 pm

    The simplest solution is probably just to subclass UITableViewCell to add a tracking property. Something like this:

    @interface TrackingTableViewCell : UITableViewCell
    @property (strong) id trackingValue;
    @end;
    
    @implementation TrackingTableViewCell
    // Default @synthesize as of Xcode 4.4!
    @end
    

    When you set up the cell, set the trackingValue to the NSURL you are downloading the URL from. When you finish loading the image, check the trackingValue of the visible cells. If you find one that matches, great. If not, don’t set it anywhere.

    You could theoretically do the same thing with the objc_setAssociatedObject() API, but I don’t really see the value in doing that over just creating a simple subclass to track the value for you.

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

Sidebar

Related Questions

I have created a web page that displays a table. Most of the cells
I have created a web page that displays a table. Most of the cells
Hopefully I can explain this clearly enough. I have a table that displays some
I have a table that displays a set of data. But when I try
I have a large table of data (that displays test data) that is separated
I have a page that displays a table in two different modes. In each
So I have a list box that displays averages in a table like format
i have a page that displays large datasets into html tables. how can i
I have a page that, when accessed displays a table of information related to
I have a table that displays pictures in each td element. The page is

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.