Hi I have several UITextView's inside a UIScrollView. After a certain action occurs, I change the text of all the UITextView's using [info setText:@"blahblah"], then I modify each TextView's frame so that all the text is viewable. Then I change the content size of the UIScrollView so that it fits all the text.
The problem is that after I do this it scrolls when I would like for it to stay at the top of the screen. [scrollView setContentOffset:CGPointMake(0,0) animated:YES]; doesn't seem to keep the scrollView at the top.
Any Ideas?
I used another view in mine, eg: UIWebView, and covered it up with a button. That only works for non-editable.
Try: How to stop UITextView from scrolling up when entering it
[scrollView setScrollsToTop:NO];
maybe?you can use scrollRectToVisible:animated: to keep the scrollview at the top