NSString *myStrings = @\"abcdefghijklmnopqrstuvwxyz\";
How could I iterate each of the letters (a, b, c, d, e, etc..) in an Objective-C for>
I would suggest to use getCharacters:range: instead. You get the raw unicode array with one object call and can iterate over the result. The output is the same, but it's faster.
NSString *inputString = @"abcdefghijklmnopqrstuvwxyz";
NSUInteger length = inputString.length;
unichar buffer[length+1];
// do not use @selector(getCharacters:) it's unsafe
[inputString getCharacters:buffer range:NSMakeRange(0, length)];
for(int i = 0; i < length; i++)
{
NSLog(@"%C", buffer[i]);
}