0
votes

I have UILabel which has no height constraint set. The problem is that the label actually sets its height according to content. But scrollView doesn't let me go down, to the end of the text. Instead, takes me to a certain portion of that view or UILabel.

It can be seen in action in the link down below (Dropbox link - short video): video link

You can also see how it is structured in the storyboard below: screenshot

1

1 Answers

0
votes

Use this code. Hope it's working for you.

self.ScrollView.frame = CGRect(x: BodyLabel.frame.origin.x, y: 
 BodyLabel.frame.origin.y, width: self.BodyLabel.frame.size.width, 
 height: self.BodyLabel.frame.size.height)