Compares the string with a given string using a case-insensitive, localized, comparison.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The string with which to compare the receiver.
This value must not be
nil. If this value is
nil, the behavior is undefined and may change in future versions of macOS.
Comparison value that indicates the lexical ordering.
Comparison the receiver precedes
a in lexical ordering,
Comparison the receiver and
a are equivalent in lexical value, and
Comparison if the receiver follows
This method uses the current locale.