ScrollView issue on AutoLayout ( Xcode 6)

468 Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

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.