Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func saveContext() {
- let context = persistentContainer.viewContext
- if context.hasChanges {
- do {
- try context.save()
- } catch {
- let nserror = error as NSError
- fatalError("Unresolved error \(nserror), \(nserror.userInfo)")
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement