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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:52:39+00:00 2026-05-24T16:52:39+00:00

I am using a UITableView to display custom content (by subclassing the UITableViewCell) and

  • 0

I am using a UITableView to display custom content (by subclassing the UITableViewCell) and I have two types of content.

Type 1 that’s displayed normally consists of 6-7 rows and 1 section and this loads quite quickly no problem at all. This data set is displayed by default.

Now there’s a button on the view that when clicked will switch on a flag and called [tableview reloadData] and then the methods to provide the data will switch and starting returning this second set of data views…. there are about 20,000+ of these rows now… and there could be 1,000,000,000 (but that will not happen any time soon…).

All I do for this second type is store an integer (they’re not sequential – there are gaps so I have to do it this way) and then when ever the cellForRowAtIndexPath is called I return a cell and create a thread that will load up the data into that cell asynchronously. This works fine… but the problem is that when that button is clicked it takes a long time to switch over the content even though the table is not loading more than three components (their heights are quite big)…..

What is causing this long data reload time?…

Thank you.

  • 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-24T16:52:41+00:00Added an answer on May 24, 2026 at 4:52 pm

    I am going to assume that you correctly loading the data asynchronously and you are not trying to reload your 20,000+ objects into memory, you may want to double check. Otherwise if you are implementing tableView:heightForRowAtIndexPath: to set the height of your rows this could be your issue. This delegate method needs to be called for each row so that it can set the scroll view content size. Instead use the UITableViews rowHeight property.

    There are performance implications to using
    tableView:heightForRowAtIndexPath: instead of the rowHeight property.
    Every time a table view is displayed, it calls
    tableView:heightForRowAtIndexPath: on the delegate for each of its
    rows, which can result in a significant performance problem with table
    views having a large number of rows (approximately 1000 or more).

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

Sidebar

Related Questions

I have a custom UITableView using UITableViewCell s. Each UITableViewCell has 2 buttons. Clicking
I'm using a UITableView to display custom cells created with Interface Builder. The table
How do I have a UITableView be notified that the data it is using
I have implemented a SearchBar using a UISearchDisplayController and a UITableView to display the
I have created an editable UITableView that supports several custom UITableViewCells of my own
I'm working on proof of concept project. That is using a UITableView to display
I have a UITableView with reorderable rows and I'm using the standard UITableViewCell.text property
I'm using a UITableView to layout content 'pages'. I'm using the headers of the
I have created a UItableView using the default Xcode template and configure it to
How to show a detail disclosure button to the uitableview without using the custom

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.