2

I'm trying to create a registration form for my application.

After droping all desire textfields on scrollView, I have setup its all desire constraints and i'm using "Any H" and "Any W" for Size Class.

on Storyboard its showing warning for textField width, when i ran this on device it shrink the textfield, see below images

enter image description here

Please Help me.

4

1 回答 1

0

You should add your textfield to scrollview with "horizontal centre in container". That means how much your scrollview width is increase/decrease your textfield will remain in centre with its leading and trailing constraint constant. So it will adjust its width as per scrollview width.

于 2014-11-18T07:30:26.190 回答