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

前端 未结 6 651

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 17:57

    You don't even need to reload the cell, just get the current cell at the target location and modify it directly and call beginUpdates and endUpdates on the table view to have it recalculate all of the row heights.

提交回复
热议问题