iphonecoredatarecipes

How to delete row in table view core Data. Swift 3

淺唱寂寞╮ 提交于 2019-11-28 06:55:26
问题 I been researching how to delete a row from a table view which the data is in Core Data. I can't find anything online that would help me with my code. Im really new with Core Data so I don't really understand much of it. Thanks in advance This is my Code override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else { return} let managedContext = appDelegate.persistentContainer.viewContext let