Make use of UITableViewAutomaticDimension to determine the UITableViewCell and UITableHeaderFooterView dynamically based on autolayout constraints.
This test project is based on this StackOverFlow question: http://stackoverflow.com/questions/29462331/is-it-possible-to-obtain-a-dynamic-table-view-section-header-height-using-auto-l
It is a basic implementation that allows the cells and headers of the table to dynamically addapt to the size of the content.