Module Outline

Use the following resources and work with your mentor to master the objectives for this module. Practice by completing the Mini-Project, Project, and Challenges.

Objectives

Lesson Video

Preclass Videos

Video Challenges

  • Extremely Simple Core Data

    Redo the last part of the teacher demo independently.

    1. Create a new project
    2. Add a UITextField to the initial scene with an IBOutlet
    3. Add a 'Save' button to the scene with an IBAction saveButtonTapped()
    4. Create the Model
    5. Add a 'Person' model object with a 'name' attribute
    6. Import the Stack file
    7. On save, create a new Person object using NSEntitiyDescription
    8. On view did load, initialize and execute a fetch request and set the text field text
  • Plan MVC Architecture for a Family Recipes App

    Draw the MVC triangle. Take 5 minutes to think through a simple Family Recipe App listing favorite family recipes. What type of model objects are there? What types of views are there? What View Controllers are there? What model controllers would be helpful? Add each of them to a list. Discuss with your neighbor.

Stretch Problem

    Number Printer

    Create a function that takes an Int as a parameter and prints it to the console the way an old-school alarm clock would look. You may create auxilary functions.

    e.g. If you pass 257 the console might look something like this:

      ---   ---  ---
         | |        |
      ---   ---     |
     |         |    |
      ---   ---
    

    ♦ Black Diamond

    Modify the function to take an Int array and print each number in the same fashion but on its own line.

Guided Project

    Playlist Core Data

    PlaylistCoreData is designed to help have students practice using Core Data and creating simple relationships between objects.

Project

  • Task Part One

    Students will build a simple task tracking app to practice project planning, progress tracking, MVC separation, intermediate table view features, and Core Data.

    ReadMe

Mastery Review

Module 13 - Persistence with Core Data - Task
  • Expand all
  • Collapse all
  • Number Printer stretch problem
  • Challenges
    • Extremely Simple Core Data objective challenge
    • Plan MVC Architecture for a Family Recipes App objective challenge
  • Playlist Core Data guided project