8/7/2018 Core data allow us to store data in our app easily. Lets take a look at, how they work.
STEP 1: New project
In xCode: File - new - project - singleview app, tick "use coredata" checkbox and name it "Saver"
STEP 2: Data model
open Save.xcdatamodeld file, add new Entity and name it "Runs". Add new attribute, name it "runs" and set the type to transformable
STEP 3: Run class
Lets define our class we will be using in our project.
STEP 4: Saving data
Create new UI with 3 buttons: "Save", "Fetch", "Delete" and connect them to the storyboard. Assign "save method to the first button" and write the following code: