How to scroll view up as new line is added into UITextView instance?

You can implement the - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text method on your UITextView delegate, count the number of newlines in the textviews text, calculate how far you have to scroll, and scroll. (This method is called every time the user types a character. ) Alternatively you can go the easier route and scroll far enough to display your entire UITextView.

If the user types more than fits into the textview, the textview will start scrolling automatically.

Use scrollRectToVisible:animated: or setContentOffset:animated: - in your case, the first, as in: scrollView scrollRectToVisible:textField. Frame animated:YES; You may also need to scroll your text field contents to visible, but I think that should happen automatically.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions