What’s the best way to handle this situation?
I have a view that contains a 1) UIImageView and 2) UILabel (multi-line).
I set constraints appropriately. I do not specify a width or height for the image view or label, because intrinsicContentSize + constraints should combine to do the right things.
I create a UITableViewHeaderFooterView and I add this view to its contentView.
And… it’s all messed up.
It appears that I need to know the height of the view and sets its frame before adding it to the contentView.
How do I found out the best height for my view? Given the width (width of the superview), I need to know the best-fit height for my view.
Read more of this story at Slashdot.
Read more of this story at Slashdot.
Read more of this story at Slashdot.