Convert a String (NSString) to Upper Case in Objective-C

This Objective-C tutorial shows how to convert a string (NSString) to upper case in Objective-C. To convert a string to upper case, call the uppercaseString method on the NSString.

Below is an example:

NSString *original = "hello";

NSString *upperCase = [original uppercaseString];


0 comments:

Post a Comment