Skip to Content
Beginning iOS 5 Application Development
book

Beginning iOS 5 Application Development

by Wei-Meng Lee
January 2012
Beginner content levelBeginner
655 pages
16h 35m
English
Wrox
Content preview from Beginning iOS 5 Application Development

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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering iOS 12 Programming - Third Edition

Mastering iOS 12 Programming - Third Edition

Donny Wals
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781118144251Purchase book