代码改变世界

caseInsensitiveCompare

2017-11-06 17:47  dengchaojie_learner  阅读(982)  评论(0编辑  收藏  举报

BOOL result1 = [err caseInsensitiveCompare:@"7B"]==NSOrderedSame;// 不区分大小写比较

Returns the result of invoking compare:options: with NSCaseInsensitiveSearch as the only option.

This method is the equivalent of invoking compare:options:with NSCaseInsensitiveSearchas the only option.