Database Reference
In-Depth Information
Note: You'll have problems at runtime if you don't name your data model file
precisely Dog Walk.xcdatamodel . This is because CoreDataStack.swift
expects to find the compiled version at Dog Walk.momd.
Open the data model file and create a new entity named Dog . You should be able
to do this on your own by now, but in case you forgot how, click the Add Entity
button on the bottom left.
Add an attribute named name of type String . Your data model should look like
this:
You also want to keep track of the walks for a particular dog. After all, that's the
whole point of the app!
Define another entity and name it Walk . Then add an attribute named date and
set its type to Date .
 
Search WWH ::




Custom Search