I\'m trying to loop through a NSString, character by character, but I\'m getting a EXC_BAD_ACCESS error. Do you have an idea how to do this right? I\'ve been googling for hours
If you want to find the location of a character in a string you can use this:
NSUInteger position = [text rangeOfString:@"."].location;
if the character or text is not found you will get a NSNotFound:
if(position==NSNotFound) NSLog(@"text not found!");