UITextView - selectedRange

Discussion in 'iOS Programming' started by Duke Leto, Mar 2, 2009.

  1. macrumors regular

    Mar 17, 2008
    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