0

Is there an Obj-C function to uppercase the first char and lowercase the other ones ?

Thanks for your advices

4

1 に答える 1

6

Yes indeed:

[myString capitalizedString];

(Note that this will capitalize each word in a sentence (ie 'hello there' -> 'Hello There') aka 'Title Case')

于 2012-06-06T09:01:01.107 に答える