I have a UITextView
with text in it, and I want to be able to scroll it such that a given NSRange
of the text is at the top of the view. Using scrollRangeToVisible:
does not work: it will scroll the range such that it is somewhere in the view, not necessarily where I want it to be. How can I scroll such that this specific NSRange
of text in the UITextView
is exactly at the top?
Thanks for any suggestions.