Change the first character in each word of a string to uppercase

The capitalizedString method exists in NSString class, see the docs

NSString *foo = @"this is all lower";
NSString *fooUpper = [foo capitalizedString];

Note that this isn’t iPhone specific, same code on the Mac.

Leave a Comment