In my tableViewController I have the following. And I am trying to get delete an item to work.
var myData: Array = []
override func tableV
To complete the answer from zisoft:
You need to save your context after deleting an object.
So the correct way would be:
// get your app managemenent context
let appDel:AppDelegate = (UIApplication.sharedApplication().delegate as AppDelegate)
let context = self.appDel.managedObjectContext!
// remove your object
context.del(data)
// save your changes
context.save(nil)
Note to check first if there are any delete rules (if you have any related objects)