UITextView Scrolling Problem
<p>I have 90% of my scrolling worked out it's just one case where I cannot get it to work.  If the textView.contentSize.height is smaller then the textView height but larger than the space visible with the keyboard up it is not possible to manually scroll the desired content into view, specifically if the user wants go back and edit one of the top lines.  </p>

<p>I am using the following to position the veiw when typing.  It automatically keeps the cursor in view when at the end of the text but allows manual scrolling also. </p>

<pre><code>-(void)textViewDidChange:(UITextView *)textView {

NSRange range = textView.selectedRange;
if (range.location == textView.text.length) 
{
 int height = textView.contentSize.height;
 if (height &gt; 180) 
 {
  [textView setContentOffset:CGPointMake(0, height -180)];
 }
}
</code></pre>

<p>}</p>

<p>Than I use the following to position the textView when editing is complete.</p>

<pre><code>    if (!editing) {
 [notesText setContentOffset:CGPointMake(0, 0)];}
</code></pre>
