mardi 6 octobre 2015

Xcode manage "Core data" records

In my project i use core data libary. I have created Entity at .xcdatamodeld file and in my code i created a lot of records:

        let managedContext = AppDelegate().managedObjectContext

        let person = NSEntityDescription.insertNewObjectForEntityForName("Person", inManagedObjectContext: managedContext)

        person.setValue("name", forKey: "plugin_",")

        do {
             try managedContext.save()
        } catch {
            fatalError("Failure to save context: \(error)")
        }

But where do i find stuff in Xcode to show all records at my database, delete and edit them like mysql workbench.

Aucun commentaire:

Enregistrer un commentaire