UITableView section header and section footer not updating (redraw problem)

Posted by Gerd on Stack Overflow See other posts from Stack Overflow or by Gerd
Published on 2010-04-26T13:43:06Z Indexed on 2010/04/26 13:43 UTC
Read the original article Hit count: 542

Filed under:
|

I have a UITableView grouped style with custom header and footer view. Inside the footer I put a UILabel and a UIButton.

Clicking on the button hides or show some rows, updates the UILabel in the footer view and finally resizes footer view.

Basically everything is working fine. BUT the text ion the label is not updated on the screen. It is updated in the UILabel text property, but only if I scroll the section footer out of the visible area and scroll it back, it is updated. So it's a typical redraw problem here of the UITableView.

I tried every method to force update like needsLayout etc. Nothing helped.

I have seen some related questions but with some different behaviour and no solution. Any help/ideas?

Thanks, Gerd

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview