TableView doesn't update(reloadData) after CoreData change using FRC Swift 3

前端 未结 2 522
醉梦人生
醉梦人生 2021-01-28 02:26

I have updated this question as I found another key to this problem. It seems that when I add something to CoreData, the tableview does not reload the data, even though I can pr

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-28 03:14

    maybe try this:

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        self.tableView.reloadData()
    }
    

提交回复
热议问题