If a UIView
subclass is laid out programmatically using constraints, and it includes some multi-line labels, how can I calculate the required height for that view given some arbitrary width?
I am aware of the method systemLayoutSizeFittingSize:
but these seems to expect something like UILayoutFittingCompressedSize
rather than a specific width. How can it return an accurate height or width without me providing the other?