How to capitalize the first word of the sentece in Objective C?

Posted by wal on Stack Overflow See other posts from Stack Overflow or by wal
Published on 2010-03-12T11:53:08Z Indexed on 2010/03/12 11:57 UTC
Read the original article Hit count: 237

I've already found how to capitalize all words of the sentence, but not the first word only.

NSString *txt =@"hi my friends!"
[txt capitalizedString];

I don't want to change to lower case and capitalize the first char. I'd like to capitalize the first word only without change the others.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about string