Chapter 15Property Lists and Archiving
Key Skills & Concepts
• 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.
An iOS Application’s Directory Structure
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 ...
Get iOS SDK Programming A Beginners Guide 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.