CHAPTER 10 EXERCISE SOLUTIONS
Answer to Question 1
The three folders are Documents, Library, and tmp. Developers can use the Documents folder to store application-related data. Files saved in the Documents folder are backed up by iTunes. The Library folder stores application-specific settings, such as those used by the NSUserDefaults class, as well as snapshots of the application's screen. The tmp folder can be used to store temporary data that will not be backed up by iTunes.
Answer to Question 2
The NSDictionary class creates a dictionary object whose items are immutable; that is, after it is populated, you can no longer add items to it. The NSMutableDictionary class, conversely, creates a mutable dictionary object that allows items to be added to it after it is loaded.
Answer to Question 3
Location of the Documents folder on a real device:
/private/var/mobile/Applications/<application_id>/Documents/
Location of the tmp folder on a real device:
/private/var/mobile/Applications/<application_id>/tmp/
Answer to Question 4
The class is UIDocumentInteractionController.
Answer to Question 5
The key is UIFileSharingEnabled.
Answer to Question 6
The key is CFBundleDocumentTypes.