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

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -