Synchronously finds the next occurance of a string after the specified selection (or before the selection if you specified
NSBackwards as a search option.
- iOS 11.0+
- macOS 10.4+
- Mac Catalyst 13.0+
Matches are returned as a
PDFSelection object. If the search reaches the end (or beginning) of the document without any hits, this method returns
If you pass
NULL for the selection, this method begins searching from the beginning of the document (or the end, if you specified
You can use this method to implement “Find Again” behavior. For options, refer to Searching, Comparing, and Sorting Strings.