Instance Property

titleHighlightRanges

The ranges of characters to highlight in the title string.

Declaration

@property(nonatomic, readonly, strong) NSArray<NSValue *> *titleHighlightRanges;

Discussion

This property contains an array of NSValue objects, each of which contains an NSRange type defining a range of characters in the title string. Use this property to identify the ranges of characters in the title string that you should highlight. Highlighting the matching text of a search completion is optional, but does provide helpful information to the user and is recommended.

See Also

Getting the Search Completions

title

The title string associated with the point-of-interest.

subtitle

The subtitle (if any) associated with the point-of-interest.

subtitleHighlightRanges

The ranges of characters to highlight in the subtitle string.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software