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
The array generated for table index titles may also be used. It does not use a for
loop and has multi-language support.
NSMutableArray *alphabets = [[NSMutableArray alloc] initWithArray:[[UILocalizedIndexedCollation currentCollation] sectionIndexTitles]];
//Remove the last object (extra), '#' from the array.
[alphabets removeLastObject];