任何人都可以向我指出有关 Objective C 中不区分大小写比较的任何资源吗?它似乎没有与 str1.equalsIgnoreCase(str2)
最佳答案
if( [@"Some String" caseInsensitiveCompare:@"some string"] == NSOrderedSame ) {
// strings are equal except for possibly case
}
文档位于 Search and Comparison Methods
https://stackoverflow.com/questions/2582306/