swift UITableview 刷新某一个 cell 或 section

虽然很简单,但是有时候会忘记,网上都是oc的资料,所以就记录一下

UITableView刷新指定的 section

刷新第2个section

tableView.reloadSections([2], with: .none)

UITableView刷新指定的 row

刷新第0个section 第0行

tableView.reloadRows(at: [IndexPath(row: 0, section: 0)], with: .none)

猜你喜欢

转载自blog.csdn.net/u014651417/article/details/123867070