I read Apple's documentation and sometimes it feels like Apple's documentation is too complicated on purpose.
NSStringCompareOptions compareOptions = NSDiacriticInsensitiveSearch;
if(NSOrderedAscending == result)
does it mean that the strings do not match?
NSOrderedAscending
means: The left operand is smaller than the right operand. NSOrderedDescending
means the opposite: The left operand is greater than the right operand.
Equality is represented by NSOrderedSame
: The two operands are equal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With