UITableViewCell content flickers while reloading cells individually

前端 未结 5 1187
余生分开走
余生分开走 2021-02-08 13:25

I have a table view linked to a NSFetchedResultController (i.e. loading data and also tracking changes to data is bound to the FRC)

I\'m not using Auto

5条回答
  •  心在旅途
    2021-02-08 13:53

    Yeah, you can achieve a similar result from the @Sandy's answer using performWithoutAnimation (Swift Version)

    UIView.performWithoutAnimation {
          self.tableView.reloadRows(at: [indexPath], with: .none)
    }
    

提交回复
热议问题