I added a CoreData in my project Model.xcdatamodeld and would like to know why when I make the call from managedObjectContext says the class doesn’t exist?
perhaps it is because at the beginning of the application I did not mark that would use a coredata, I wonder if after the semi-ready application would have how to put
It is possible to add Coredata later yes, however you have to add the Coredata framework, and create the required methods in the Appdelegate class (this process it does by itself when you create a project from scratch)
What mistake the Xcode is pointing at the line?
– Luis Henrique
Good morning Luis Henrique, the error is Value of type appDelegate has no Member 'managedObjectContext'
– Bruno Bafilli
perhaps it is because at the beginning of the application I did not mark that would use a coredata, I wonder if after the semi-ready application would have how to put
– Bruno Bafilli
It is possible to add Coredata later yes, however you have to add the Coredata framework, and create the required methods in the Appdelegate class (this process it does by itself when you create a project from scratch)
– Luis Henrique
Take a look at this article, it should help you: http://craig24.com/2014/12/how-to-add-core-data-to-existing-swift-project-in-xcode/
– Luis Henrique