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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:20:21+00:00 2026-05-25T00:20:21+00:00

I have a UITableView with heavy images content. So the scrolling is not fluid

  • 0

I have a UITableView with heavy images content. So the scrolling is not fluid anymore.
I want to add a timer to load the images, while you scroll I create the timer for each row. If the cell quits the view, I cancel the timer. If not I fade in the images.

My question is : is there a callback for a cell going out of view ? I’m reading the doc, but I’m not sure there is anything for my needs.

Thanks for the help !

EDIT: The code I’m using (this is the three20 library, I’m using a custom TTTableItemCell. The “_tabBar1.tabItems = item.photos” is the line hoging resources. On the first load it’s okay because the photos are being loaded asynchronously from the server, but when I scroll back or reload the view, they are all loaded synchronously, and the scrolling isn’t smooth anymore, especially on an iPhone 3G. :

- (void)setObject:(id)object {
    if (_item != object) {
        [super setObject:object];

        Mission* item = object;

        self.textLabel.text = item.name;
        _tabBar1.tabItems = nil;

        timerFeats = [NSTimer scheduledTimerWithTimeInterval:(0.5f) target:self selector:@selector(updateFeats) userInfo:nil repeats: NO];  
        //_tabBar1.tabItems = item.photos;
  }
}

-(void)updateFeats {
    DLog(@"timer ended");
    Mission* item = self.object;
    self._tabBar1.tabItems = item.photos;
}
  • 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-25T00:20:22+00:00Added an answer on May 25, 2026 at 12:20 am

    Alright, I found a way.

    There is actually a callback to know what cell is about to get out of view. :

    - (void)willMoveToSuperview:(UIView *)newSuperview;
    

    So my code is :

    - (void)willMoveToSuperview:(UIView *)newSuperview {
        [super willMoveToSuperview:newSuperview];
        if(!newSuperview) {
            DLog(@"timer invalidated");
            if ([timerFeats isValid]) {
              [timerFeats invalidate];
            }
    
        }
    }
    

    If there is no newSuperview the cell is going out of the view and so I verify first that my timer hasn’t been invalidated yet, and then I cancel it.

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

Sidebar

Related Questions

I have UITableView with images as rows (cells). I use EGOImageView to load images
I have UITableView and it add data from NSMutableArray. So, I want to know
I have UiTableView containing some data, and I want to scroll the UiTableViewCells horizontally
I have UITableView and I want to load more data when user tries to
I have UITableView with very large cells with lots of content (more than one
I have a UITableView which contains names in each row alongwith images for each
I have UITableView and I am trying to load it by default in edit
I have a UITableView and I want to provide the functionality to user to
I have an UITableView and I want to populate it with data from this
I have UITableView with some content, which is loaded in asynchronous way. When user

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.