January 2011
Beginner
544 pages
11h 36m
English
• Understanding the iOS directory structure
• Persisting a collection as a property list
• Archiving an object hierarchy
In this chapter, you learn how to persist your data to a file using properties and then how to persist your data using archiving. However, before learning about these two topics, you briefly explore the iOS’s file system.
Persisting and archiving require writing data to a file, but an iOS application can only read and write to files in the application’s sandbox. When installed, an application is placed in its own home directory. This directory is the application’s root directory and should be left untouched, lest you risk corrupting ...