iOS - Change the height of a Text Field within UIStackView

0

I have a layout that I built using StackView . So I have a StackView vertical with some TextField , and two StackView horizontal inside. I want now to change the height of textfields, which the inspector will not let me do.

The layout looks like this:

Andonceit'ssetup:

Does anyone know if it's possible to make this change at the time? Or is it some problem with constraint ?

    
asked by anonymous 21.06.2017 / 21:04

1 answer

0

To change the height of the textFiled you have to put a constraint on it. Try to hold control on the textField element and then drag on it, from that 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. Look for the height constraint that was placed and then change the height value.

RememberingthatyouhavetochangethevalueoftheconstraintandthenhavetheViewupdatedonthescreen,thismayvary,sometimesitneedstobeupdated,sometimesitisdoneautomatically.

    
07.07.2017 / 15:52