I\'ll get right to it. I have a UItextView
placed in my view that when needs to scroll to see all the text (when a lot of text is present in the textView) the t
To force the
textView
to start at the top every time, use the following code:
Swift 4.2
:
override func viewDidLayoutSubviews() {
textView.setContentOffset(CGPoint(x: 0, y: 0), animated: false)
}
Objective-C
:
- (void)viewDidLayoutSubviews {
[self.yourTextView setContentOffset:CGPointZero animated:NO];
}