ios: uiscrollview and uiview autolayout -
i have uiscrollview
, uiview
. when uitextview
touched, uitextview
size large size , uiscrollview
size small size , there problem because of autolayout.
how can set constraints of uiscrollview
, uiview
?
may try it:
below constraint:
uiscrollview top, left, right equal self.view top, left, right
uiscrollview bottom equal uiview bottom
uiview left, right, bottom equal self.view left, right, bottom uiview height equal 200(you set it)
ok, when uitextview touched, set uiview height constraint want(maybe 300)
i think works!
Comments
Post a Comment