November 2013
Beginner
325 pages
9h 47m
English
NSString is another class like NSDate. Instances of NSString hold character strings. Objective-C developers use NSString instances to hold and manipulate text in their programs.
In code, you can create an instance of NSString like this:
NSString *lament = @"Why me!?";
Notice that there is no explicit message sent to the NSString class to create the instance. The @"..." is Objective-C shorthand for creating an NSString object with the given character string.
This shorthand is known as literal syntax. When you use it, we say that you are creating a literal instance of NSString, or more commonly, an NSString literal.
Instances of NSString can contain any Unicode character. ...
Read now
Unlock full access