O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

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

11. Persistent Data in iOS

Storing data that the user will need to run the app is an important part of developing for the mobile platform. In addition to the regular purposes for saving data, the mobile platform also presents unique challenges regarding the life cycle of an app that requires special consideration to saving data. Because the app can become inactive and be closed down at any point, it’s important to save enough of the app’s state on a regular basis to allow the user to continue working in a meaningful way when the app becomes active again.

In this chapter you will see several ways that you can save data on iOS. Most of the attention is going to be on a system called Core Data that provides strong support for a database-backed persistence ...

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