shouldReplaceFoundTextInRange:inDocument:withText:
Determines whether the searchable object allows replacement of the text range you provide.
Declaration
- (BOOL) shouldReplaceFoundTextInRange:(UITextRange *) range inDocument:(UITextSearchDocumentIdentifier) document withText:(NSString *) replacementText;Parameters
- range:
The range of characters in a text container to consider a replacement for.
- document:
A string that uniquely identifies the document containing the text range.
- replacementText:
The string to replace the text with.
Return Value
Return No to prevent the replacement of a particular text range.
Discussion
Returning NO from this method disables the “replace” button in the find panel. If you don’t implement this method, the system assumes all results are replacable.