I have another even simpler solution, to be used without autolayout and with everything done through the XIB :
1/ Put your header in the tableview by drag and dropping it directly on the tableview.
2/ In the Size Inspector of the newly made header, just change its autosizing : you should only leave the top, left and right anchors, plus the fill horizontally.
That should do the trick !