CHAPTER 9 EXERCISE SOLUTIONS

Answer to Question 1

To retrieve the values for preferences settings, you use the objectForKey: method. To save the values for preferences settings, you use the setObject:forKey: method.

Answer to Question 2

You can either remove the application from the device or Simulator, or you can remove the file ending with application_name.plist in the application folder within the Simulator.

Get Beginning iOS 5 Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.