PDA

View Full Version : UITextView - selectedRange




Duke Leto
Mar 2, 2009, 09:34 PM
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.