Alex Rivera | Logout

UITextView automatic scroll down

Asked 2009-02-09T14:13:11.210
30

I have an UIView and I add a editable UITextView to it,

UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(5, 5, 219, 47)];
[self addSubview:textView];
textView.font = [UIFont systemFontOfSize:14];

When I type it doesn't go down automatic. Anybody got an idea?

Edit
Report

1 Answer

8

I think you'll have to do

[textView scrollRangeToVisible:[textView selectedRange]];

in textDidChange.

answered 2009-02-09T14:28:01.673

Your Answer