O'Reilly logo

Beginning iPhone Development with Swift 2: Exploring the iOS SDK by Jeff LaMarche, Frederik Olsson, Jack Nutting, Kim Topley, David Mark

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

Chapter    13

Basic Data Persistence

So far, we’ve focused on the controller and view aspects of the MVC paradigm. Although several of our applications have read data from their own application bundle, only the Bridge Control example in Chapter 12 has stored any data in persistent storage. Every time any of the other sample applications launched, it appeared with exactly the same data it had the first time you launched it. This approach has worked for us up to this point, but in the real world, your applications will need to persist data. When users make changes, they usually like to find those changes when they launch the program again.

A number of different mechanisms are available for persisting data on an iOS device. If you’ve programmed ...

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