0
votes

I am adding UIScrollView in storyboard with all sides(trailing,leading,top,bottom) constraints. I have added a contentView inside a UIScrollView added constraints all sides(trailing,leading,top,bottom) and Equal width and Heights to SuperView(not scrollView) and changed height constraint priority to 250.

I have kept 3 views insdie content view for all views I have mentioned height and 3 sides(except bottom) but for last view I have kept all four sides and height.

But why i am not able to scroll till last view bottom.

ScrollView Constraints[![][1]]2

enter image description here

2

2 Answers

0
votes

You give the contentView equal height constraint to main view ( Remove it )

enter image description here

While you should hook subviews of it so the scrollView will scroll according to the current content

0
votes

Hey @santhosh I think you set a Equal height with SuperView is wrong 1. Remove ComentView Height constrains
2. set all(Three view) height and all constrains trailing,leading,top,bottom Automatically remove(scrollview) constrains error. enter image description here