UITextView - selectedRange

Discussion in 'iPhone/iPad Programming' started by Duke Leto, Mar 2, 2009.

  1. macrumors regular

    Joined:
    Mar 17, 2008
    #1
    How can I get a UITextView's cursor to go to a particular position. My current code is:

    NSInteger length = textView.text.length;
    textView.selectedRange = NSMakeRange(length, 0);

    Even so, the cursor is determined to be positioned at the beginning.
     

Share This Page