【发布时间】:2013-03-20 04:08:03
【问题描述】:
如何将 NSString 中每个句子的首字母大写?
例如,字符串:@"this is sentence 1. this is sentence 2! is this sentence 3? last sentence here." 应该变成:@"This is sentence 1. This is sentence 2! Is this sentence 3? Last sentence here."
【问题讨论】:
-
这些链接只解决了单个字符串的首字母大写的问题,而不是具有不同分隔符(.、!、?)的多个字符串的组合。
标签: objective-c nsstring