reload cell data in table view with Swift

前端 未结 4 1349
不知归路
不知归路 2020-12-14 09:28

how is it possible to reload data for a cell in my table view? I want to do a request to my Server and the server responses JSON. At the moment I implemented the request and

4条回答
  •  半阙折子戏
    2020-12-14 09:46

    You can use self.tableView.reloadData() in order to reload your entire table or self.tableView.reloadRowsAtIndexPaths(paths, withRowAnimation: UITableViewRowAnimation.None) in order to reload a specific cell.

    You can read more about the UITableView class here

提交回复
热议问题