O'Reilly logo

iOS Programming Cookbook by Hossam Ghareeb

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 12. Persisting Data with Core Data

In this chapter, we will cover the following topics:

  • Designing data models
  • Reading and insertions in Core Data
  • Updating and deleting records from Core Data

Introduction

In mobile apps, you may need to save data locally in device disk-like files or database files. In a database, you can save a set of records (objects) and create relations between them. You can perform many types of operations with high performance, such as insertions, deletions, updates, fetching, filtering, and so on. Initially, we used to use SQLite to manage persistence in an iOS app, until Apple launched the Core Data framework.

Core Data is a great framework that manages the data layer of your application and model objects, 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