Auto-Layout Question

Rick Aurbach

I would like some help building constraints that adjust a superView to the size of it's subView.

Specifically, I have a UILabel embedded in a UIView. The label has fixed width and (since numberOfLines = 0) a height which depends on the label's content. I want to use auto-layout to auto-size the exterior view so that there is a 5 pixel margin around the UILabel.



Rick Aurbach

Join to automatically receive all group messages.