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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:03:34+00:00 2026-05-20T11:03:34+00:00

I have a UITableView Controller and a UITableView. I have everything set up using

  • 0

I have a UITableView Controller and a UITableView. I have everything set up using the delegates etc, and it populates fine. I notice a small bug however with the following method:

:cellForRowAtIndexPath

I am noticing that this method is continually called every time I scroll the table. Even after the table is populated, it continues to call. Basically, a cell moves out of view, when it comes back in view, it is calling it again. I had NSLog print out the cell contents within that method, which is how I know it continues to call.

Should that function not just call once per cell, to populate it, then be done?

  • 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-20T11:03:35+00:00Added an answer on May 20, 2026 at 11:03 am

    Nope. That’s called every time a cell is needed, and a cell is needed every time one is rendered.

    UITableView is a very clever little critter. It literally keeps only the cells it’s displaying, plus a cache of literally two or three more. When the time comes to scroll a cell on that wasn’t on, it can be asked for a cell from the cache, and if there is one, it gets reused.

    This way HUGE data sets can be displayed in a UITableView, because there really aren’t a large number of cells in memory, only the ones on the screen and a small cache.

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

Sidebar

Related Questions

Hey - I have the following method on my UITableView controller public void RemoveEventFromList(Event
I have a working UITableView in my view controller. It is being successfully populated
I have a UITableView (on a navigation controller stack) which is showing details for
In my Map application I have segment controller on main screen and using that
I have declared a protocol, everything seems to work fine, even Xcode auto-complete the
So in my app, I have a UITableView , and in the navigation controller
I have currently got a UITableView in my main view controller. I want the
I have implemented a SearchBar using a UISearchDisplayController and a UITableView to display the
I have a main UITableView Controller that is backed by a NSFetchedResultsController, this view
I have a navigation bar controller + tab bar controller + UITableview for the

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.