How to find the location of a specific character in an NSString?
I tried this, but it returns an empty range (I want to find the location "?"):
NSRange range = [@"This is a ? test to see if it works" rangeOfCharacterFromSet:[NSCharacterSet characterSetWithCharactersInString:@"?"]];
source
share