uiscrollview - Autolayout constraints not being applied iOS -
i making app uiscrollview uibuttons in along uilabels. i'm trying way outlined here on apeth.com referenced on question. implementation not set contentsize or use contentview scrollview should adjust size of it's subviews.
the problem uibuttons , uilabels seem not have constraints applied. had bunch uibuttons , uilabels fit on storyboard see them so. however, appear when run app. constraints should work @ runtime, seems using storyboard rough layout.
and how looks on 5s
the uiscrollview constraints superview 0 0 uiscrollview 0 0
the subviews of uiscrollview follows
subviews - center vertical
16-firstbutton-4-firstlabel-16-secondbutton-4-secondlabel-etc...-16-lastbutton-4-lastlabel-16
edit: followed suggestion in comment , added label button make simpler , set contentview 728. now, have problem of button truncating button text, awful localization purposes. please advise.
Comments
Post a Comment