reload cell data in table view with Swift

前端 未结 4 1345
不知归路
不知归路 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:44

    To reload visible cells of tableview in Swift 3.0

    pTableView.beginUpdates()
    
    pTableView.reloadRows(at: pMessagesTableView.indexPathsForVisibleRows!, with: .none)
    
    pTableView.endUpdates()
    

提交回复
热议问题