O'Reilly logo

Learning iPad Programming: A Hands-On Guide to Building iPad Apps, Second Edition by Kirby Turner, Tom Harrington

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

13. Data Persistence

In the preceding chapter we added the capability for the prototype app to take photos with the device cameras. Now that photos are coming into the app, it’s time to develop a system for saving and managing them. In this chapter we’ll discuss which kind of data the app will deal with and how to manage and save it effectively. This chapter will implement the Model part of the Model-View-Controller design pattern.

The Data Model

To effectively build the data model, you need to have a clear idea of which kind of data you’ll be working with and how the various types of data relate to one another. For this app there are two types of data: photos and photo albums.

Photos

Because this app arranges photos in albums, the most obvious ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required