ios - Storyboard constraints using ScrollView aren't respected -
i'm quite new ios, specially complex views using storyboards. i've started develop following screen trying use autolayout don't need worry different idevices screen sizes.

i'm using scrollview move content visible space while need input info keyboard. thing re-created constraints lot of times trying make fields respect width of scrollview. actually, when running, fields being displayed larger scrollview width (it's overflowing screen width right). curious thing button respects width. when change orientation landscape on iphone 6s plus fields has smaller width screen width if had defined specific size , button continue respect size according constraints. thoughts?
hierarchy:
view controller view scroll view view b logo / app name / uitextfields / switch / button / link basically scroll constrained view a. view b constrained equal width view , scroll margins.
current xcode version: 7.2 (7c68)
please find constraints added scrollview i.e top,left,right,bottom constraints. @ same way set constraints individual elements inside scrollview i.e textfield , button. these elements , set left,right,top , height constraints. have added in code achieve functionality see screenshot below.


Comments
Post a Comment