Lab 4 - Todo List
Github Classroom
Link
Setup and Background
In this lab, we’ll be creating a persistent to-do list app, allowing users to add and delete tasks. All
of the coding tasks in this lab are in ViewController.swift. Before you start
writing code, open ToDo.xcmodeld and create an entity called
Reminder, with properties
name (String) and
completed (Boolean). After you fill out all of the code in
ViewController.swift, you should have a working to-do list app!
NSManagedObject Properties
As a quick review, to access properties of an NSManagedObject, use the
following syntax
object.value(forKey: "name")
This line will return an object of type Any, remember to cast to fit your
needs.
Lab 4 - Todo List
Github Classroom Link
Setup and Background
In this lab, we’ll be creating a persistent to-do list app, allowing users to add and delete tasks. All of the coding tasks in this lab are in
ViewController.swift. Before you start writing code, openToDo.xcmodeldand create an entity called Reminder, with properties name (String) and completed (Boolean). After you fill out all of the code inViewController.swift, you should have a working to-do list app!NSManagedObject Properties
As a quick review, to access properties of an
NSManagedObject, use the following syntaxThis line will return an object of type
Any, remember to cast to fit your needs.