Alexander Farber
Alexander Farber

Reputation: 22988

Same distance between several UILabels

In Xcode 5.0.2 when I select the 5 labels (by holding SHIFT key and clicking them) as shown at the below screenshot -

enter image description here

Is there an easy way in Xcode to put all labels at same distance from each other?

Upvotes: 1

Views: 290

Answers (1)

matt
matt

Reputation: 535230

Make constraints between the bottom of each label and the top of the next label. Set the constant of each constraint to the same value.

You can select all the labels (except the last one) and do that in a single move using the second button in the widget at the bottom of the storyboard canvas.

enter image description here

This is the sort of thing you are trying to achieve:

enter image description here

Upvotes: 2

Related Questions