ios - UIScrollView does not Scroll completely -


i have viewcontroller. in put scrollview view(contentview). later drag contentview view , set equal height. scrolls, not fully.

enter image description here

enter image description here

as see there has continue below textview, doesn't scrolls. how can fix it?

you need set contentsize of scrollview. use below code that:

func viewdidlayoutsubviews() {     super.viewdidlayoutsubviews()     self.scrollview.contentsize = cgsizemake(self.view.frame.size.width, self.contentview.frame.size.height);  } 

Comments