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 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.