I want an NSArray/NSMutableArray containing all the letters of the alphabet. There must be a quick and easy way, better than typing them all out. For example in PHP
NSArray/NSMutableArray
try with following code;
int a = 65; for (; a < 91; a++) { [array addObject:[NSString stringWithFormat:@"%c", (char)a]]; } NSLog(@"%@", array);