Here, How you can select text in a UITextView
[textView setSelectedRange:NSMakeRange(row, length)]
where row indicates which line you want to start your selection from. length - the total length of the text.
eg [textView setSelectedRange:NSMakeRange(1, 45)]; // where 1 is first row, and 45 is length of text of selection.
source share