IOS TOPICS

IOS Introduction
Swift UI Label
Swift UI Button
Swift UI Text Field
Swift UI Slider
Swift UI Switch
Swift UI Stepper
Swift UI Date Picker
Swift UI Segmented Control
Views
Table View
Collection Views
SCROLL VIEW
iOS Content View
iOS View Controllers
iOS Bar interface
iOS Navigation interface
iOS Architect Pattern
iOS Libraries
iOS Web request and parsing
iOS user defaults
iOS Coredata and database

Managed Object Model


Managed Object Model

What is a Managed Object Model?

The managed object model is used to manage the CoreData schema. When we use Coredata in our programs, Xcode creates a file with the extension .xcdatamodeld. In our case, it is a Blogger.xcdatamodeld file. This File is used to create a core data schema. The Coredata schema describes the various structures, attributes, and relationships between them and is represented by the NSManagedObjectModel model. Schema marks the records stored in the Persistent store and ManagedObjects used in our application.

In my previous article Core Data: Core Data Stack in Swift, we read about Coredata Stack. There we created a demo app called Blogger. In this article, we will learn how to manage organizations, attributes, and relationships between businesses.

CoreData Managed Object Model

In this lesson, we will learn about the following topics:

  • .xcdatamodeld File
  • Businesses
  • Qualities
  • Relationships