We have set up our data models, and now we are ready to do some operations in Core Data. In this section, we will see how to insert new records and fetch them back so that we can display them to our user. In our demo, we will design a screen so that the user can add new task lists and see the already added lists. The user will then be able to select a task list to open another screen, which has a list of tasks inside this list. We will add a functionality to add new tasks to this list.
Reading and inserting records to Core Data
How to do it...
- Let's continue working in our demo to build our Todo app.
- Create a new Group in Xcode called Model to add the model classes inside.
- Create a new class called AbstractManager to...