Programmatically remove the header of UITableView and automatically resizes the content to fill in the removed area.

Posted by code007 on Stack Overflow See other posts from Stack Overflow or by code007
Published on 2011-03-02T06:47:53Z Indexed on 2011/03/02 7:25 UTC
Read the original article Hit count: 221

Hello all, I have added a UIButton in the header section of the UITableView via the interface builder and would like to remove the access to the button in certain cases. I have tried to use the '.hidden = TRUE' property but it just hides the button from the view, leaving a white space behind. How do I programmatically remove the header of UITableView and have the table's content automatically resizes to fill in the removed header area?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview