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

Reading and inserting records to Core Data

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.

How to do it...

  1. Let's continue working in our demo to build our Todo app.
  2. Create a new Group in Xcode called Model to add the model classes inside.
  3. Create a new class called AbstractManager to work as a parent manager for the ...

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