I\'m been smashing my head against the wall with this for last 3 or 4 hours and I can\'t seem to figure it out. I have a UIViewController with a full screen UITableView insi
You need to use the UIView systemLayoutSizeFittingSize: method to obtain the minimum bounding size of your header view.
UIView systemLayoutSizeFittingSize:
I provide further discussion on using this API in this Q/A:
How to resize superview to fit all subviews with autolayout?