Example code how to manipulate strings with XCode and NSString. |
Using: Xcode 4.2.1 Mac OS X 10.7.2 Cocoa |
Merge or append strings with stringByAppendingString |
NSString *firstString = @"First"; This example will merge the firstString and secondString to "FirstSecond" string and will be displayed in the showMessage function. |
Return string with lowercase using the lowercaseString function will return the string in lowercase |
NSString *firstString = @"First";
|
This example will return "First" in lowercase "first". |
- Log in to post comments