I have a xib file with a UIView that I want to use as a tableViewHeaderView. The view has a label with a bunch of text. No matter what I try I cannot get it to adjust so the height fits in correctly according to the constraints.
This is the nib:
The label is set to adjust its height to fit the text and all the margins are 15 points away from the superview. However when this is added to the table view it looks like this:
I can't seem to figure out what I'm missing, here is the sample project, is there some way you are supposed to setup the nib to allow the view to be sized by its contents constraints?
Edit: I've tried the answer given here with no luck: https://stackoverflow.com/a/21099430/383603
Edit 2: It should look like this: