i have 2 string objects containing same string but case is different,now i wanna compare them ignoring the case sensitivity,how to do that??here is the code...
I would rather suggest to add a category on NSString:
- (BOOL)isEqualIgnoreCaseToString:(NSString *)iString { return ([self caseInsensitiveCompare:iString] == NSOrderedSame); }
With this you can simply call:
[myString1 isEqualIgnoreCaseToString:myString2];