Chapter    19

Doc, You Meant Storage

If you want your iOS app to store more than a few tidbits of information, you need documents. iOS provides a powerful document framework that brings data storage into the 21st century. The iOS document (UIDocument) class takes care of, or lets you easily implement, modern features such as autosaving, versioning, and cloud storage. In the process, you’ll finally learn how to archive objects. In this chapter, you will do the following:

  • Create a custom document object
  • Use a document object as your app’s data model
  • Learn how to archive and unarchive your data model objects
  • Design a document that can be loaded or saved incrementally
  • Handle asynchronous document loading
  • Manage document changes and autosaving

Get Learn iOS 8 App Development, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.