I have to check out whether a russian character is present in a NSString
or not.
I am using the following code for that:
NSCharacterSet * set =
[[NSCharacterSet characterSetWithCharactersInString:@"БГДЁЖИЙЛПФХЦЧШЩЪЫЭЮЯ"]
invertedSet];
BOOL check = ([nameValue rangeOfCharacterFromSet:set].location == NSNotFound);
return check;
But it is always returning FALSE
.
Can anybody give me an idea what is wrong in my code?
Thanks