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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:00:39+00:00 2026-05-28T07:00:39+00:00

Our app has a UITableViewController with some custom section headers. These section headers are

  • 0

Our app has a UITableViewController with some custom section headers.

These section headers are implemented using a UIViewController and a Xib file which contains various labels and graphics.

A server call is made to retrieve dynamic data from the server and once retrieved the section header ViewControllers are created in a NSMutableArray and then in - (UIView*)tableView:(UITableView*)tableView viewForHeaderInSection:(NSInteger)section method I return the controller.view for the appropriate section. The callback which handles the receipt of the server side content calls [self.tableView reloadData] to display the data.

This all worked fine prior to iOS5. But since iOS5 the table loads the sections but they appear blank (as the are defined in the Xib) without the specific data. Only when you manually scroll the table and the sections are forced to redraw, is the data populated in the section header Views.

I have tried lots of techniques to get this to work. The only hack that got close was to put in a NSTimer which called the [self.tableView reloadData] after 0.5 seconds. This unreliably works but there is a flash and also if there are many sections those off the screen initially scroll in blank until they are forced to refresh.

I was wondering if my technique of sending in a viewController view for a section header was flawed or I need to explicitly need to ask it to redraw. I used a viewController because the Xib is easier to layout the complex view.

Other thought was whether the callback from the server was not properly calling the reloadData. I am using ASIHTTP package and the delegate callback.

Any help much appreciated

  • 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-28T07:00:39+00:00Added an answer on May 28, 2026 at 7:00 am

    May be the reloading is happening from some background thread. Try:

    [self.tableView performSelectorOnMainThread:@selector(reloadData)
    withObject:nil waitUntilDone:YES]

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

Sidebar

Related Questions

Our app allows multiple files to be selected in a file selection dialog which
Our iOS app has a Web View that is rendering pages from file: URLs.
Our 3rd Party app has a custom View with the following: FROM dbo.vwPositionAssetSubWeight INNER
Our app has a bug in the non-unicode version; if we copy some Russian
Our app has a lease_booking model with a field of lease_date which is a
Our company has a fairly large ASP.NET web application. The app is already broken
Our app (already deployed) is using an Access/Jet database. The upcoming version of our
Our app uses a component that requires a license file in the directory with
Our app servers (weblogic) all use log4j to log to the same file on
I'm experimenting with using cagradientlayer to draw gradients in our app instead of having

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.