tags:

views:

30

answers:

0

When the cursor is just above the keyboard, auto-correction is drawn behind the keyboard. It seems fixed in OS 3.0 but I want to avoid the behavior by own code because want to build on the version 2.0.

[textView scrollRectToVisible:CGRectMake(0, textView.contentSize.height + 14, 1, 1) animated:YES];

Above code can handle some of situation but not enough. If cursor is out of range, the view will go up and down. Does anyone has a idea to avoid the behavior by the code?