Persisting data is a core skill for any iOS developer. Learn how to store app data to your device using three common techniques: NSUserDefaults, Sandbox & Core Data.
Overview
Syllabus
- Simple Persistence
- Learn about simple persistence and how to save small pieces of data, like user preference, using NSUserDefaults.
- iOS File System and Sandboxing
- Learn about the iOS File System, the “sandbox”, and how to access these files using NSFileManager.
- Introducing Core Data
- Explore what a data layer is, and how to convert a non-Core Data app to have a Core Data model.
- The Core Data Stack
- Set up the classes we need to get Core Data up and running so that we can create, save, and delete model objects.
- Simpler Code with Core Data
- Enable user interfaces to reactively update whenever the model changes.
- Rounding Out Core Data
- Safely migrate user data between versions, and move slow work to the background.
Taught by
Jason Schatz