How to increase the single row height without reloading UITableView or individual cells [Swift]?

前端 未结 6 634

I want to expand the row height and show the content inside. I show my content in view I want when I tap on a cell it should expand like showed in the image

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-17 18:06

    You don't have to reload the whole table. UITableView has a method func reloadRowsAtIndexPaths(indexPaths: [NSIndexPath], withRowAnimation animation: UITableViewRowAnimation). You can use this to update a single cell.

提交回复
热议问题