开发者

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"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜