tags:

views:

265

answers:

4

Hi all,

 I have a issue while doing some encoding with the string.

It returns all teh values in CAPS . I want it to be small. IS there any api available in objective C to convert the caps in the NSString into small alphabet.

Any help would be greatly appreciated ..

Best regards, Mohammed sadiq .

+2  A: 
 NSString *original = @"blah"
 NSString *lowercase = [original lowercaseString];

This code will make the NSString lowercase be original in all lower case.

Nali4Freedom
A: 
[NSString lowercaseString]

Returns a lowercase version of your NSString.

RickiG
A: 

If you want it all lower case you can do [myString lowercaseString];

If you want it capitalized use [myString capitalizedString];

See Apple's Docs on NSString

bmalicoat
A: 

lowercaseString

(is there a badge for the fourth answer providing the same solution as the three before?)

Kai
I only wish someone had posted an answer at 6:58 ...
RickiG