Home > Enterprise >  How can I align them nicely?
How can I align them nicely?

Time:02-16

enter image description here

Those are the labels that receive the data.

There is a lot of space, but there is overlap.

CodePudding user response:

You Should arrange your component from the top of the page:

all of your components arrangement and constraints depend on together.

Component_1 must have Constraint(height, top, left, right) Component_2 must have Constraint(height, top, left, right) if you have a label with the flexible height you should set constraint without fixed height and should height Constraint with >= height (height >= 30, top, left, right) and set numberOfLine to 0.

if you have a lot of components you should use ScollView or TableView

  • Related