Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The NSString and
NSMutableString
classes allow you to store a string of characters in memory. The
NSString class is immutable, meaning that once it is created, its contents
cannot be modified. Mutable strings represented with the NSMutableString can be modified once they
are created. We will see an example of both of these classes very
soon.
Objective-C strings should be placed inside double quotes. The starting double-quote should be
prefixed with an at sign (@). For instance, the sentence Hello, World, represented as a string in
Objective-C, is written like so: