this should be simple but I am having trouble setting the width of textfields and/or buttons with placeholders in storyboard so that it looks right in the simulator..
I have set the width to 200. It looks find in storyboard, however, the textfield shrinks to the size of the placeholder when I build and run.
In the case of buttons, I also set the width to 200 but the button shrinks to the size of the label.
What am I not doing correctly?
Try setting width and height constraints of the textfield and button as displayed below:

Then click "Add 2 Constraints" (I know it says 3 in the image, ignore that).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With