Contents

replaceAllOccurrencesOfQueryString:usingOptions:withText:

Informs the searchable object to replace all matching text across all searchable documents.

Declaration

- (void) replaceAllOccurrencesOfQueryString:(NSString *) queryString usingOptions:(UITextSearchOptions *) options withText:(NSString *) replacementText;

Parameters

  • queryString:

    The string to search for and replace.

  • options:

    The configurable options to use for matching words and comparing strings.

  • replacementText:

    The string to replace the text with.

Discussion

When supportsTextReplacement returns YES, the system calls this method during a find session to request the replacement of all text matching the query string.

See Also

Handling replacements