Note: For me it wasn’t working with UITableViewController.
Kovacs Zsolt
11

Try this repo: https://github.com/aunnnn/TableHeaderViewWithAutoLayout. It has both UITableView and UITableViewController working examples.

I just found some parts missing in the article, e.g., we also need to set tableHeaderView again to force the table view to update the header frame). It will be updated soon.

Thanks for reading!

Like what you read? Give aunnnn a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.