iPhone Development 101

iPhone 101

Code Tips

Resources

Links

Follow

Mailing ListTwitter

More

iPhone Development 101: Objective-C:
Strings

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:

Additional References


TopHome