0
I am creating an application with tables and persistence with CoreData
, but when I ask to erase a line the same does not disappear completely from the screen, leaving the symbol...disappearing only when I go to a second screen and return.
override func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
let managedObject : NSManagedObject = frc.objectAtIndexPath(indexPath) as! NSManagedObject
moc.deleteObject(managedObject)
do{
try moc.save()
}catch{
print("Error, data not saved!")
}
self.tableView.reloadData()
}
decrease the size of these images there and post the code you are using to delete, from a read in this article here when you can:http://answall.com/help/mcve
– Gabriel Rodrigues
Thanks Gabriel, I’m not with my Mac now, later put the code part.
– Luan Felix Coelho
Could someone help me?
– Luan Felix Coelho