This is how I initialize my NSMutablearray. I copy the content of cityList into cityArray. Both are NSMutableArray. FYI, I declared the\'cityArray\' using extern.
An NSArray doesn't implement valueForKey:. Your want either an NSDictionary or use objectAtIndex:.
NSArray
valueForKey:
NSDictionary
objectAtIndex:
Your second section of code should read:
NSString *allCities = @"All Cities"; [cityArray addObject:allCities];