Skip to content

context is not saved in NoteViewController.swift #1

@zweef

Description

@zweef

func func save(_ sender: Any) does not save the context.

this might fix it:
do {
try note?.managedObjectContext?.save()
} catch {
let saveError = error as NSError
print("Unable to Save Note")
print("(saveError), (saveError.localizedDescription)")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions