view raw
ChrisP ChrisP - 11 months ago 44
Objective-C Question

Is there a way to force a refresh of just a single header in UITableView?

I have a UITableView where I want to force a refresh of just a specific section header row, not the data rows. For example, refresh the header for section 3. I know how to reload an entire section (header plus data), but can just the section header be refreshed?

EDIT: When data changes in one section of the table I want to update information in the header of a DIFFERENT section. Therefore, I need to get a reference to the section header and then refresh it.


If the header is a custom UIView, then you can just call setNeedsDisplay on the UIView rather than on the UITableView.