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...
To save a method call, I used a macro via a #define:
#define
#define isEqualIgnoreCaseToString(string1, string2) ([string1 caseInsensitiveCompare:string2] == NSOrderedSame)
Then call:
(BOOL) option = isEqualIgnoreCaseToString(compareString, toString);