Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
|
What You’ll Learn in This Hour:
|
The first part of this hour is dedicated to making the calculator calculate. You’ll learn how to use mutable strings, strings you can change, and why Objective-C provides two mutable and immutable variants of many common data-structures. To illustrate their use, you’ll add a history of calculations to the calculator using strings. Attempting to change an immutable string generates an exception, leading to a discussion of error handling in Objective-C.