I'm trying to implement Core Data in my project to my project, to create entities, save data and retrieve data. I'm following these tutorial :
https://www.youtube.com/watch?v=XPe4TQc-iSE
My code for the moment:
let appDel: AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
let context: NSManagedObjectContext = appDel.managedObjectContext
I get this error:
Value of type 'AppDelegate' has no member 'managedObjectContext'
I did some search, and found that to have this in AppDelegate.swift, I have to tap 'Use Core Data' when I create a project, so how to do now when my project is already created ?
I think I miss persistentStoreCoordinator too and the other function to use Core Data.