Align text fields using dynamic constraints

I am learning how to make iOS apps, and have come across minor annoyances. I cannot find an easy way to align my text inputs.

Looking at the screenshot below, you will see that I was able to align my text fields, and this is what I want.

However, I did this manually by changing the individual Master Space between each shortcut and text box.

Screenshot

My question is: how can I dynamically align my text fields?

0
source share
2 answers

, . :

1). age:

  • c.
  • c.
  • c.
  • c.

2) :

  • c.
  • c.
  • c.
  • , , CTRL , horizontal spacing c.

enter image description here

3) - ( IB , ).

enter image description here

4) weight:

  • c.
  • c.
  • .

enter image description here

enter image description here

5) . .

enter image description here

FINISH .

, , , .

, :

enter image description here

+1

, X- , , textField.

enter image description here

+1

Source: https://habr.com/ru/post/1655925/


All Articles