Take the 2-minute tour ×

I have a textfield in my iOS app where the user is supposed to input some text. But I was wondering if there is any way to convert the users input to lower case letters?

I remember in C# it was something like Convert.ToLower but I can't seem to figure out how to do it in Objective-c

share|improve this question

1 Answer 1

up vote 127 down vote accepted

There is a method called lowercaseString on NSString. NSString contains plenty of methods for string manipulation, please read the documentation.

NSString *myString = @"Hello, World!";
NSString *lower = [myString lowercaseString]; // this will be "hello, world!"
share|improve this answer
Or myString.lowercaseString in case you need to be someplace –  mattsven Jun 4 at 20:31

Your Answer


