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


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
Post a Comment