scrollRangeToVisible:inDocument:
Scrolls to the containing view to make the text range visible.
Declaration
- (void) scrollRangeToVisible:(UITextRange *) range inDocument:(UITextSearchDocumentIdentifier) document;Parameters
- range:
The text range to scroll to.
- document:
A string that uniquely identifies the document containing the text range.
Nilwhen searching a single document.
Discussion
If the seachable object supports scrolling, use this method to implement scrolling your view to make the highlighted text range visible.