title: Force UITextView cursor to the top of the view
body: <p>I have a UITableView that contains a series of text input fields, which can be UITextField or UITextView controls. When a text input field is selected, the keyboard's 'Next' button is used to cycle through the fields. This all works properly except for one thing. When a UITextView (multiline) receives focus by calling becomeFirstResponder, the cursor is positioned at the second line in the view, not the first. This seems to be the most common suggestion to address the issue, but it does not work in my case. Any suggestions? thanks!</p>
  
  <pre><code>-(void)textViewDidBeginEditing:(UITextView *)textView
  {
       [textView setSelectedRange:NSMakeRange(0, 0)];
  }
  </code></pre>
  
  <p>Also tried this without success:</p>
  
  <pre><code>textView.selectedTextRange = [textView textRangeFromPosition:textView.beginningOfDocument toPosition:textView.beginningOfDocument];
  </code></pre>