This domain is for sale.
iPhone 101
Code Tips
Resources
More
The Objective-C class for strings is NSString. Strings are typically created by direct assignment or by calling one of the NSString class methods. As in other languages, strings are enclosed in "double quotes", however in Objective-C an NSString is prefixed by an @-sign:
NSString *newString = @"This is a string.";
How to do common string tasks:
- Creating and formatting strings
- Checking for equal strings
- Splitting a string into an array
- Joining an array of strings into a single string
- Trimming spaces
- Concatenating two strings
- Finding and replacing substrings, plus how to get the user's name from the UIDevice string
- Replacing all occurrances of a characters in a string