Core Data in iOS: 1 Introduction

Core Data in iOS: 1 Introduction

4h 41mIntermediate2022-06-08

Authors

Mohammad Azam

Mohammad Azam

iOS Developer, Educator

Course details

Core Data is a framework, which can persist objects graph to a designated store, including SQLite, XML, Binary and In-Memory. In this course, instructor Mohammad Azam prepares you to build your first Core Data app for iOS platform. Mohammad steps through how to get started with Core Data, including creating a Core Data model, initializing the Core Data manager, saving a movie, and much more. He shows you how to use the Core Data stack with various versions of iOS. Mohammad explains in depth the MVVM design pattern, including what it is, why you need it when creating applications, and how to use MVVM architecture and Web APIs. He walks you through using Core Data and MVVM together, then goes into transformable types. After explaining the one-to-many relationship, Mohammad discusses refactoring and how and when you should use refactoring, then finishes up with the details you need to know about the many-to-many relationship.

Skills covered

iOS DevelopmentiOSMobile DevelopmentAppleEssential Training

Concepts

Introduction

  • Core Data in iOS
  • Exercise files

Getting Started with Core Data

  • What is Core Data
  • Creating a Core Data model
  • Initializing the Core Data manager
  • Saving a movie
  • Get all movies
  • Deleting a movie
  • Updating a movie
  • Refreshing the list

Core Data Building Blocks

  • Understanding Core Data building blocks
  • Initializing Core Data stack before iOS 10 - Managed object model
  • Initializing Core Data stack before iOS 10 - Persistent store coordinator
  • Initializing Core Data stack before iOS 10 - Managed object context
  • iOS 10 and above - Initializing Core Data stack

Understanding MVVM Design Pattern

  • What are design patterns
  • What is MVVM
  • Why MVVM
  • MVVM architecture and Web APIs

Core Data and MVVM

  • What are you building
  • Understanding the starter project
  • Adding a Core Data model
  • Initializing the Core Data manager
  • Adding movie
  • Displaying all movies
  • Deleting a movie

Transformable Types

  • Understanding the starter project
  • Adding the data model
  • Saving a room
  • Implementing transformer
  • Displaying all rooms

Relationships - One-to-Many

  • Understanding the one-to-many relationship
  • Tour of the starter project
  • Adding a review model and setting the relationship
  • Adding a new review to a movie
  • Displaying all reviews for a movie - Option one
  • Displaying all reviews for a movie - Option two

Refactoring Movies App

  • What is refactoring
  • Implementing the base model
  • Using the base model

Relationships - Many-to-Many

  • Understanding the many-to-many relationship
  • Understanding the starter project
  • Adding an actor data model
  • Adding an actor to a movie
  • Displaying all actors for a movie
  • Fetching all movies for an actor
  • Displaying all movies by an actor
100,000 Toman