Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Duke Leto

macrumors regular
Original poster
Mar 17, 2008
166
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.