Reputation: 6253
I have a view with an UITableViewCell. In this custom cell like this:
I have added the textFields into UIViews, and all uiviews have this constraints with autolayout:
but then, when is running on device, all views are distributed with bad forms:
The first uiview is deformed
How could I add the constraints correctly to show this like into sttoryboard (First picture) ? Thanks!
Upvotes: 1
Views: 22
Reputation: 122
width >= 62
means you set the min width for each component. UILabel is auto size based on its content, that’s the reason why you got the result. To achieve your goal, set component to equal width to each other
In storyboard, you can do that by pressing Ctrl while dragging mouse to other component and select equal width
Upvotes: 0