NSString - how to convert LONDON into London
How can I convert a string @"NEW YORK"开发者_Go百科 into @"New York", or "LONDON" into "London"?
Thanks,
RL
NSString *allCapsString = @"LONDON";
NSString *city = [allCapsString capitalizedString];
NSLog(@"%@", city); // @"London"
精彩评论