iOS - Changing the height of a Text Field inside Uistackview

Asked

Viewed 171 times

1

I have a layout I’ve assembled using StackView. So I have a StackView vertical with some TextField, and two StackView horizontal inside. I now want to change the height of the textfields, thing the inspector won’t let me do.

The layout is like this:

inserir a descrição da imagem aqui

And so it’s set:

inserir a descrição da imagem aqui

Does anyone know if it is possible to make this modification at the time? Or is it some problem of constraint?

1 answer

0

To change the height of the textFiled you have to put a Constraint on it. Try holding control on the element of textField and then drag on it itself, from this you will select height, From there you will select the textField element that you placed the Constraint, and look at the value of the Constraint on the right side of the Xcode, looking at the measurements. Search for the height Constraint that was placed and then change the value of it.

Adicionando a altura do textField


Remembering that you have to change the value of the Constraint and then have the View update that is present on the screen, this may vary, sometimes you need to update, other times is already done automatically.

Mudando o valor da constraint

Browser other questions tagged

You are not signed in. Login or sign up in order to post.